开发者

Certificates - What is KSP and CSP

In certificates, what is KSP & CSP, and what are their difference? In C#, how to f开发者_开发技巧igure out whether the certificate is using CSP or KSP.


CSP is Cryptographic service provider.

KSP is Key storage provider.

See MSDN for samples of working with the System.Security.Cryptography namespace.


Use the certutil command.

When generating a certificate request (custom request) in the mmc on Windows Server 2012 R2 for example, you will be presented with a list of choices under the Private Key tab, Cryptographic Service Provider arrow.

For Legacy (CSP), all providers end with Cryptographic Provider. For CNG (KSP), all providers end with Key Storage Provider.

Example(run cmd.exe as administrator)

certutil "name of the certificate including suffix" enter password if required look for the line Provider =

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜