一、证书相关
查看证书详细信息:
openssl x509 -in cert.pem -noout -text
查看证书所有者:
> openssl x509 -in cert.pem -noout -subject
subject= /CN=www.dyxmq.cn
打印指纹信息:
> openssl x509 -in cert.pem -noout -fingerprint
SHA1 Fingerprint=7B:29:CE:09:28:4B:38:82:DF:53:14:B0:15:00:03:66:2B:C0:90:9E
转换证书格式:
> openssl x509 -in cert.pem -inform PEM -out cert.der -outform DER
二、测试指令
测试openssl库功能,已ssl3协议连接baidu.com的443端口:
openssl s_client -connect baidu.com:443 -ssl3
此处评论已关闭