环境:
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 写入权限。