命令行创建临时证书 报错 Can't create the key of the subject

来源:互联网 发布:2017最新资金盘源码 编辑:程序博客网 时间:2024/06/06 00:42

环境:

windows 7 系统

 

命令行创建临时证书

makecert.exe -sr LocalMachine -ss My -a sha1 -n CN=XXX -sky exchange -pe

 

报错:

Can't create the key of the subject ('xxxxxx-xxx-x-x-x-x‘)

 

解决方式

LocalMachine证书的存储路径为 C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys

新增MachineKeys文件目录的 administrator 写入权限。

 

 

原创粉丝点击