小编Buj*_*jji的帖子

将 .cer 转换为 .pem?

我对证书的了解为零。我在互联网上搜索,发现很少,但在我的情况下,没有一个对我有帮助。

我使用的是Red Hat Enterprise Linux ES 版本 4(Nahant 更新 9)

我正在尝试将 .cer(这是一个 CAS 证书)转换为 .pem 并收到以下错误

openssl x509 -inform der -in cas.cer -out cas.pem
unable to load certificate
4419:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:959:
4419:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:304:Type=X509
Run Code Online (Sandbox Code Playgroud)

我可以通过运行来阅读它的纯文本

[root@sls32 install]# openssl x509 -in cas.cer -text -noout
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 1331657215 (0x4f5f79ff)
        Signature Algorithm: sha1WithRSAEncryption
        Issuer: C=USA, ST=PA, L=KOP, O=TEST, OU=TEST, CN=TEST.com
        Validity
            Not Before: Mar 13 16:46:55 2012 GMT
            Not After : Dec 27 16:46:55 …
Run Code Online (Sandbox Code Playgroud)

ssl ssl-certificate

7
推荐指数
1
解决办法
5万
查看次数

标签 统计

ssl ×1

ssl-certificate ×1