reference.conf: simplify SPKI fingerprint generation commands

[ci skip]
This commit is contained in:
Aaron Jones 2016-12-01 05:08:15 +00:00
parent 256e6fd251
commit 2815967598
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -1329,12 +1329,12 @@ general {
* $ openssl x509 -outform DER < your.crt | sha1sum (or sha256sum, or sha512sum) * $ openssl x509 -outform DER < your.crt | sha1sum (or sha256sum, or sha512sum)
* *
* To generate a SPKI SHA-256 fingerprint, run the following: * To generate a SPKI SHA-256 fingerprint, run the following:
* $ openssl x509 -pubkey -noout < your.crt | grep -v 'PUBLIC KEY' | base64 -d | \ * $ openssl x509 -pubkey -noout -in your.crt | openssl pkey -pubin -outform DER | \
* sha256sum | awk '{ print $1 }' | sed -r -e 's/^/SPKI:SHA2-256:/' * sha256sum | sed -r -e 's/^/SPKI:SHA2-256:/'
* *
* To generate a SPKI SHA-512 fingerprint, run the following: * To generate a SPKI SHA-512 fingerprint, run the following:
* $ openssl x509 -pubkey -noout < your.crt | grep -v 'PUBLIC KEY' | base64 -d | \ * $ openssl x509 -pubkey -noout -in your.crt | openssl pkey -pubin -outform DER | \
* sha512sum | awk '{ print $1 }' | sed -r -e 's/^/SPKI:SHA2-512:/' * sha512sum | sed -r -e 's/^/SPKI:SHA2-512:/'
*/ */
certfp_method = sha256; certfp_method = sha256;
}; };