This websie
encrypts XML using "test.pfx".
I want encipher my XML by X509 certificate and decrypt it using smart card.
I changed that line
X509Certificate2 cert = new X509Certificate2("test.pfx");
on
X509Certificate2 cert = new X509Certificate2("test.cer");
and my code encrypt XML and during decrypting I type my smard card pin and my XML is decrypted.
When I use test.pfx I have to change code on
X509Certificate2 cert = new X509Certificate2("test.pfx", "myPassword");
and this code encrypt XML but during decrypting I don't type my smard card pin and my XML is decrypted.
Can you explain me why on http://msdn.microsoft.com/ website to encrypt xml is using pfx file?
Does XML encrypted *.cer file is safe? I want decrypted my XML only by my smart card.