View certificate details openssl [Reserved]

openssl x509 part of the command
to print out the contents of the certificate:
openssl x509 -text -IN cert.pem -noout
print out the certificate serial number
openssl -serial x509 -in cert.pem -noout
owner name to print out a certificate
openssl x509 -in cert .pem -noout -subject
to print out the name of the owner of the certificate in the format specified in RFC2253
openssl x509 -in cert.pem -noout -subject -nameopt RFC2253
owner name in support UTF8 terminal line had to print out a certificate
openssl x509 -in cert.pem -noout -subject -nameopt oneline -nameopt -escmsb
print out characteristic parameters MD5 certificate
openssl x509 -in cert.pem -noout -fingerprint
print out characteristic parameters SHA certificate
openssl x509 -sha1 -in cert.pem -noout -fingerprint
a certificate PEM format is converted into DER format
openssl x509 -in cert.pem -inform PEM -out cert.der -outform DER
the certificate converted to a CSR
openssl x509 -x509toreq -in cert.pem -out req.pem -signkey key.pem
be treated to a CSR, issue digital signature certificates, increased CA extensions
openssl x509 -req -in careq.pem -extfile openssl.cnf -extensions v3_ca -signkey key.pem -out cacert.pem
to signing a CSR, increase user certificate extensions
openssl x509 -req -in req.pem -extfile openssl.cnf -extensions v3_usr -CA cacert.pem -CAkey key.pem -CAcreateserial

Guess you like

Origin www.cnblogs.com/liujx2019/p/11499140.html