Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
“什么是”呢-inkey privateKey.key“;在openssl命令中_Openssl_Certificate_Ssl Certificate - Fatal编程技术网

“什么是”呢-inkey privateKey.key“;在openssl命令中

“什么是”呢-inkey privateKey.key“;在openssl命令中,openssl,certificate,ssl-certificate,Openssl,Certificate,Ssl Certificate,我正在尝试使用OpenSSL使用以下命令将PEM、P7B和CRT转换为PFX: OpenSSL pkcs7 -print_certs -in certificate.p7b -out certificate.cer openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer 我的问题是在第二个命令中“-inkey privateKey.ke

我正在尝试使用OpenSSL使用以下命令将PEM、P7B和CRT转换为PFX:

OpenSSL pkcs7 -print_certs -in certificate.p7b -out certificate.cer

openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer

我的问题是在第二个命令中“-inkey privateKey.key”是什么,我没有从Godaddy收到.key文件

当您从一个合适的CA(如GoDaddy)获得证书时,顺序是(1)生成密钥对(private和public——对于openssl,它们都在“privatekey”文件中,这可能会让人困惑)(2)生成包含公钥的CSR(openssl可以使用
req-newkey-keyout
将#1和#2组合起来)(3)向CA提供CSR,加上其他证据和所需付款(4)CA提供EE证书,加上任何所需的链证书(5)使用来自#4的证书和来自#1的私钥,这可以包括将它们合并到PKCS12/PFX中。