C# 中的 X509 指南/教程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1228439/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
X509 guide/tutorial in C#
提问by ppiotrowicz
Can anyone point me to a good introductory materials on X509 certificates with examples in C#.
任何人都可以向我指出有关 X509 证书的良好介绍材料以及 C# 示例。
采纳答案by Srikar Doddi
You can begin here
你可以从这里开始
The System.Security.Cryptography.X509Certificates namespace contains the common language runtime implementation of the Authenticode X.509 v.3 certificate. This certificate is signed with a private key that uniquely and positively identifies the holder of the certificate.
System.Security.Cryptography.X509Certificates 命名空间包含 Authenticode X.509 v.3 证书的公共语言运行时实现。此证书使用私钥签名,该私钥唯一且肯定地标识了证书的持有者。
回答by John Sibly
I found this C# examplepretty helpful in figuring out how to generate new certificates.
我发现这个C# 示例对于弄清楚如何生成新证书非常有帮助。
Also this blog post covering the more general concepts
这篇博客文章也涵盖了更一般的概念
Other than that you'll need the platform SDK installed, which does also include several other examples (most in C++, but a couple in C# and VB too).
除此之外,您还需要安装平台 SDK,其中还包括其他几个示例(大多数在 C++ 中,但也有几个在 C# 和 VB 中)。
回答by Dave
I found this particularly helpful:
我发现这特别有帮助:
Nine simple steps to enable X.509 certificates on WCF
Also, if anyone's having trouble installing the windows devlopment sdk (to get MakeCert.exe), untick the c++ options in the installer and it seems to work fine.
此外,如果有人在安装 windows devlopment sdk(以获取 MakeCert.exe)时遇到问题,请在安装程序中取消勾选 c++ 选项,它似乎工作正常。