我想将 PEM(+key) 证书转换为*.p12
文件。我知道当我没有中级证书时,我是这样做的:
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
Run Code Online (Sandbox Code Playgroud)
有中级证书怎么办?
gar*_*Red 14
您需要将所有 PEM 文件连接为一个,然后将其转换为 PKCS#12:
$ cat certificate.crt intermediate.crt > bundle.crt
$ openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in bundle.crt
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
21319 次 |
最近记录: |