我们通过以下方式转换:
openssl x509 -outform der -in your-cert.pem -out your-cert.crt
也可以将(.crt .der 和.cre)转换为pem格式
openssl x509 -inform der -in certificate.cer -out certificate.pem
校验CA证书的key和crt是否匹配
openssl x509 -noout -modulus -in your-cert.crt | openssl md5
openssl x509 -noout -modulus -in your-cert.key | openssl md5
比较验证输出的校验码是否相同即可。
最后
以上就是着急棉花糖最近收集整理的关于将.pem格式的CA证书转换为.crt格式方式的全部内容,更多相关将.pem格式内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复