首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >2048位的“‘Makecert”

2048位的“‘Makecert”
EN

Stack Overflow用户
提问于 2011-03-01 23:12:07
回答 3查看 1.9K关注 0票数 1

对于我的应用,我需要生成一个2048位的证书。可以使用'makecert.exe‘工具生成吗?

如果没有,可以使用哪种工具来生成证书?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2011-03-04 16:23:50

我使用了带有2048位选项的Makecert。它工作得很好。我不认为之前的声明是在MSDN网站上说的。但它工作得很好。

票数 0
EN

Stack Overflow用户

发布于 2011-03-01 23:15:15

查看此处:SO Question about makecert

更新

OpenSSL可能是您的答案。

票数 1
EN

Stack Overflow用户

发布于 2012-08-24 18:54:43

是的,我创建了一个配置文件(下面的MS documentation)来完成您可以通过以下命令使用的工作(假设conf文件名为config.inf):

代码语言:javascript
复制
certreq -New config.inf csr_file

以下是配置文件的内容(您必须根据自己的需要进行调整):

代码语言:javascript
复制
; /!\ DON'T MODIFY THIS SECTION
[Version]
Signature = "$Windows NT$"

; Here are the TUNABLE THINGS
[NewRequest]
; Edit the subject to match your needs
Subject = "C=FR,ST=Ile De France,L=Paris,O=MyGroup,OU=MyTeam,CN=MySite"
; Indicate if the private key is exportable or not
Exportable = TRUE
; Minimum key length : 2048 bits
KeyLength = 2048
; Key Usages
KeyUsage = 0xe0
; Indicates if the certificate is stored in the machine store or not
MachineKeySet = TRUE
; Format of the output CSR file, you should not have to change that
RequestType = PKCS10
; Specify the provider used to generate the private/public key pair, you can
; list all the available providers by typing the following command :
; `certutil -csplist`
ProviderName = "Microsoft Enhanced RSA and AES Cryptographic Provider"
ProviderType = 24

然后,当您拿回证书时,您只需使用以下命令导入它:

代码语言:javascript
复制
certreq -Accept crt_file

希望这能有所帮助:)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5156352

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档