openssl - 无法将 .pem 转换为 .der
问题描述
我正在尝试将 .pem 文件转换为使用 OpenSSL 提供给我但未成功的 .der 文件。.pem 文件受密码保护。文件包含证书和私钥
使用的命令
openssl x509 -outform der -in certificate.pem -out certificate.der
我收到这个错误
unable to load certificate
540409864:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto/asn1/tasn_dec.c:1130:
540409864:error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:290:Type=X509
540409864:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:crypto/pem/pem_oth.c:33:
请教我如何解决这个问题,谢谢
解决方案
推荐阅读
- php - Xdebug 安装失败,因为使用 MAMP 在 macOS Big Sur 上“phpize”失败
- java - 是否必须创建内部类来处理 DataBinding 中的事件?
- javascript - 节点缓存数据不会持久。页面连接重置时清除
- sql - 将“LISTAGG”转换为“XMLAGG”
- javascript - 根据字段值Vue.js删除列表中的对象
- c++ - (C++) if 语句的问题,简单 == 条件
- amazon-elastic-beanstalk - 如何在 ElasticBeanstalk / Amazon Linux 2 上运行容器命令?
- jmeter - 配置以将 JMeter 作为 systemd 服务启动
- python - 有没有办法在 Python 中绘制 3D 数据的 2D 散点图?
- unity3d - Unity - 我可以将 CharacterController 组件添加到 2D 游戏中的 2D 精灵吗?