如何给证书名称 [英] How To Give Certificate Name

查看:141
本文介绍了如何给证书名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个用于创建自签名证书的代码,在调用函数时,我无法指定证书名称,因为我不知道该如何给出该名称.

Hi,

I got a code for creating self signed certificates, In that while calling a function i am unable to specify the certificate name because i dont know how to give that.

Public Shared Function CreateSelfSignCertificate(ByVal distinguishedName As X500DistinguishedName, ByVal startDate As DateTime, ByVal endDate As DateTime) As X509Certificate2



如何给出distinguishedName?
我想给证书加上的名字是酒精",我该如何做到这一点.请帮助它非常紧急.



How to give the distinguishedName?
the name i want to give to my certificate is "alcohol" how can i accomplish this. Please help its really urgent.

推荐答案

该函数不是.NET Framework或我所知道的任何库的一部分.

哦,很好,您可以在此处 [
That function is not part of the .NET Framework or any library I know of.

Oh well, you can find out about X.500 (DN) here[^].

BTW: "Alcohol" is a stupid name to give to a certificate. It should be a bit more descriptive as to what that cert is being used for.


这篇关于如何给证书名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆