对于我的应用,我需要生成一个2048位的证书。可以使用'makecert.exe‘工具生成吗?
如果没有,可以使用哪种工具来生成证书?
发布于 2011-03-04 16:23:50
我使用了带有2048位选项的Makecert。它工作得很好。我不认为之前的声明是在MSDN网站上说的。但它工作得很好。
发布于 2011-03-01 23:15:15
发布于 2012-08-24 18:54:43
是的,我创建了一个配置文件(下面的MS documentation)来完成您可以通过以下命令使用的工作(假设conf文件名为config.inf):
certreq -New config.inf csr_file以下是配置文件的内容(您必须根据自己的需要进行调整):
; /!\ 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然后,当您拿回证书时,您只需使用以下命令导入它:
certreq -Accept crt_file希望这能有所帮助:)
https://stackoverflow.com/questions/5156352
复制相似问题