无法从 .p12(私钥 + public 密钥)创建 .pem 文件
Unable to create .pem file from .p12 (private key + public key)
我正在尝试使用以下命令从 .p12
文件创建 .pem
文件,
openssl x509 -inform der -in Certificates.p12 -out Certificates.pem
但出现以下错误:
4412094060:error:0DFFF0A8:asn1 encoding routines:CRYPTO_internal:wrong tag:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/tasn_dec.c:1125:
4412094060:error:0DFFF03A:asn1 encoding routines:CRYPTO_internal:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/tasn_dec.c:306:Type=X509_CINF
4412094060:error:0DFFF03A:asn1 encoding routines:CRYPTO_internal:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/tasn_dec.c:627:Field=cert_info, Type=X509
知道如何解决吗?
下面的命令运行良好,
openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes -clcerts
我正在尝试使用以下命令从 .p12
文件创建 .pem
文件,
openssl x509 -inform der -in Certificates.p12 -out Certificates.pem
但出现以下错误:
4412094060:error:0DFFF0A8:asn1 encoding routines:CRYPTO_internal:wrong tag:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/tasn_dec.c:1125:
4412094060:error:0DFFF03A:asn1 encoding routines:CRYPTO_internal:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/tasn_dec.c:306:Type=X509_CINF
4412094060:error:0DFFF03A:asn1 encoding routines:CRYPTO_internal:nested asn1 error:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/tasn_dec.c:627:Field=cert_info, Type=X509
知道如何解决吗?
下面的命令运行良好,
openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes -clcerts