提交 9422d45d 编写于 作者: R Rich Salz

Add fingerprint text, remove MD5

Reviewed-by: NBen Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4906)
上级 da6be198
...@@ -259,8 +259,11 @@ non-zero if yes it will expire or zero if not. ...@@ -259,8 +259,11 @@ non-zero if yes it will expire or zero if not.
=item B<-fingerprint> =item B<-fingerprint>
Prints out the digest of the DER encoded version of the whole certificate Calculates and outputs the digest of the DER encoded version of the entire
(see digest options). certificate (see digest options).
This is commonly called a "fingerprint". Because of the nature of message
digests, the fingerprint of a certificate is unique to that certificate and
two certificates with the same fingerprint can be considered to be the same.
=item B<-C> =item B<-C>
...@@ -725,10 +728,6 @@ supporting UTF8: ...@@ -725,10 +728,6 @@ supporting UTF8:
openssl x509 -in cert.pem -noout -subject -nameopt oneline,-esc_msb openssl x509 -in cert.pem -noout -subject -nameopt oneline,-esc_msb
Display the certificate MD5 fingerprint:
openssl x509 -in cert.pem -noout -fingerprint
Display the certificate SHA1 fingerprint: Display the certificate SHA1 fingerprint:
openssl x509 -sha1 -in cert.pem -noout -fingerprint openssl x509 -sha1 -in cert.pem -noout -fingerprint
...@@ -782,13 +781,6 @@ T61Strings use the ISO8859-1 character set. This is wrong but Netscape ...@@ -782,13 +781,6 @@ T61Strings use the ISO8859-1 character set. This is wrong but Netscape
and MSIE do this as do many certificates. So although this is incorrect and MSIE do this as do many certificates. So although this is incorrect
it is more likely to display the majority of certificates correctly. it is more likely to display the majority of certificates correctly.
The B<-fingerprint> option takes the digest of the DER encoded certificate.
This is commonly called a "fingerprint". Because of the nature of message
digests the fingerprint of a certificate is unique to that certificate and
two certificates with the same fingerprint can be considered to be the same.
The Netscape fingerprint uses MD5 whereas MSIE uses SHA1.
The B<-email> option searches the subject name and the subject alternative The B<-email> option searches the subject name and the subject alternative
name extension. Only unique email addresses will be printed out: it will name extension. Only unique email addresses will be printed out: it will
not print the same address more than once. not print the same address more than once.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册