Creating certificate using makecert without pvk file

回眸只為那壹抹淺笑 提交于 2019-12-11 00:46:14

问题


I am trying to create a certificate signed by the root key with makecert. I have no PVK file, only KEY and PEM file. I think, KEY an PEM files are also private keys. Is it right?
But if i try this:

.\makecert.exe -n "CN=Test Use" -iv ca.key -ic ca.cer -pe -a sha256 -len 4096 -b 01/01/2018 -e 01/01/2019 test.cer

I get an error:

Error: Can't access the key of the issuer ('ca.key') Failed.

The same error with PEM file. I get no question for password. Is there a way to create a certificate without PVK file using makecert?


回答1:


I have found a solution for me. I createted pvk file using openssl

openssl rsa -in ca.key -outform PVK -pvk-strong -out mykey.pvk

With the generated key, the comand from my initial question works.



来源:https://stackoverflow.com/questions/51203395/creating-certificate-using-makecert-without-pvk-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!