ブラウザで表示できる証明書があります-VeriSignによって署名されています-G3しかし、pkcs12、x509、pkcs7などのopenSSL(またはPHP)で読み込もうとすると、次のようなエラーが発生します:
openssl pkcs12 -in cert.to.test.cer -clcerts -nokeys -out mycert.crt
28685:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1306:
28685:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error:tasn_dec.c:830:
28685:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:tasn_dec.c:749:Field=version, Type=PKCS12
PHPで証明書のパラメータを読み取るために何ができますか?ありがとう。