diff options
author | Viktor Szakats <vszakats@users.noreply.github.com> | 2015-09-20 16:08:15 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-09-20 18:41:23 +0200 |
commit | bb72b9453d23c9aea4e5778ea367b97dd702864d (patch) | |
tree | 88421743cf7e3fc0bb2908128c9f5a6cd4b4ea43 /docs/libcurl | |
parent | 5fde69cdc3f274f776e0a116c8dbd26571dcf5a9 (diff) | |
download | curl-bb72b9453d23c9aea4e5778ea367b97dd702864d.tar.gz |
CURLOPT_PINNEDPUBLICKEY.3: replace test.com with example.com
closes #443
Diffstat (limited to 'docs/libcurl')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.3 b/docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.3 index 9f8224af7..f4dc4750e 100644 --- a/docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.3 +++ b/docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.3 @@ -71,16 +71,16 @@ server's certificate. # - If you don't have sed, then just copy the certificate into a file: # Lines from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE-----. # -openssl s_client -servername www.test.com -connect www.test.com:443 < /dev/null | sed -n "/-----BEGIN/,/-----END/p" > www.test.com.pem +openssl s_client -servername www.example.com -connect www.example.com:443 < /dev/null | sed -n "/-----BEGIN/,/-----END/p" > www.example.com.pem # extract public key in pem format from certificate -openssl x509 -in www.test.com.pem -pubkey -noout > www.test.com.pubkey.pem +openssl x509 -in www.example.com.pem -pubkey -noout > www.example.com.pubkey.pem # convert public key from pem to der -openssl asn1parse -noout -inform pem -in www.test.com.pubkey.pem -out www.test.com.pubkey.der +openssl asn1parse -noout -inform pem -in www.example.com.pubkey.pem -out www.example.com.pubkey.der # sha256 hash and base64 encode der to string for use -openssl dgst -sha256 -binary www.test.com.pubkey.der | openssl base64 +openssl dgst -sha256 -binary www.example.com.pubkey.der | openssl base64 .fi The public key in PEM format contains a header, base64 data and a footer: |