无法使用 openssl 从 cer 文件创建 pfx 文件
Cannot create pfx file from cer file with openssl
我确定这个问题已经问过你好几次了,但这些案例的解决方案对我不起作用。所以我需要你的帮助。
考虑 x.root.cer 是 CA 的证书, x.app.cer 应用程序的证书由CA的证书签名,x.app.private.pem是应用程序的私钥。
我正在使用以下命令创建 pfx 文件(想要同时包含私钥和应用程序证书)。
openssl pkcs12 -export -in x.app.cer -inkey x.app.private.pem -out x.app.pfx -certfile x.root.cer
尽管我知道(可以看到)那里有 3 个文件,但我收到以下错误:
unable to load certificates
你能帮我解决这个错误吗?
好吧,我终于用这个命令成功了
openssl pkcs12 -export -in x.app.cer -inkey x.app.private.pem -out x.app.pfx
这意味着我不应该使用 -certfile 参数。
我确定这个问题已经问过你好几次了,但这些案例的解决方案对我不起作用。所以我需要你的帮助。
考虑 x.root.cer 是 CA 的证书, x.app.cer 应用程序的证书由CA的证书签名,x.app.private.pem是应用程序的私钥。
我正在使用以下命令创建 pfx 文件(想要同时包含私钥和应用程序证书)。
openssl pkcs12 -export -in x.app.cer -inkey x.app.private.pem -out x.app.pfx -certfile x.root.cer
尽管我知道(可以看到)那里有 3 个文件,但我收到以下错误:
unable to load certificates
你能帮我解决这个错误吗?
好吧,我终于用这个命令成功了
openssl pkcs12 -export -in x.app.cer -inkey x.app.private.pem -out x.app.pfx
这意味着我不应该使用 -certfile 参数。