开发者

X509Certificate2: Internal error

When I try to execute code below I got an error:

Internal error occurred.

var certificate = new X509Certificate2( p12FileBytes, p12FilePassword );

when I added

X509KeyStorageFlags.MachineKeySet(
   new X509Certificate2(
      p12FileBytes, p12FilePassword,  X509KeyStorageFlags.MachineKeyS开发者_如何学运维et)).

I got another error:

Access Denied.

How can I fix it?

Thanks in advance.

Regards,

Stepan.


Run the second code with elevated privileges.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜