Stepan_P 0 Newbie Poster

Hi.

When I try to execute code below I got an error 'Internal error occurred.'

certificate = new X509Certificate2( p12FileBytes, p12FilePassword );

and when I made change to certificate = new X509Certificate2( p12FileBytes, p12FilePassword,X509KeyStorageFlags.MachineKeySet );

I got another error 'Access Denied.'

How can I fix it?

In advance THANKS FOR HELP!

Regards,

Stepan.