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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 13:57:25  来源:igfitidea点击:

X509 guide/tutorial in C#

c#.netsecurityx509certificate

提问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

你可以从这里开始

X509Certificate MSDN Resource

X509Certificate MSDN 资源

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

在 WCF 上启用 X.509 证书的九个简单步骤

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++ 选项,它似乎工作正常。