openssl x509 -in signed.crt -noout -dates
openssl x509 -in cert.pem -noout -text
openssl x509 -in cert.pem -noout -serial
openssl x509 -in cert.pem -noout -subject
openssl x509 -in cert.pem -noout -subject -nameopt RFC2253
openssl x509 -in cert.pem -noout -subject -nameopt oneline -nameopt -escmsb
openssl x509 -in cert.pem -noout -fingerprint
openssl x509 -sha1 -in cert.pem -noout -fingerprint
openssl x509 -in cert.pem -inform PEM -out cert.der -outform DER
openssl x509 -x509toreq -in cert.pem -out req.pem -signkey key.pem
- 给一个CSR进行处理,颁发字签名证书,增加CA扩展项
openssl x509 -req -in careq.pem -extfile openssl.cnf -extensions v3_ca -signkey key.pem -out cacert.pem
openssl x509 -req -in req.pem -extfile openssl.cnf -extensions v3_usr -CA cacert.pem -CAkey key.pem -CAcreateserial
openssl req -in my.csr -noout -text