├── example ├── README.md ├── example1.csr ├── example2.csr ├── example1.crt ├── example2.crt ├── example1.key └── example2.key ├── README.md ├── hpkp-gen └── LICENSE /example/README.md: -------------------------------------------------------------------------------- 1 | Examples for hpkp-gen 2 | ===================== 3 | 4 | This directory contains example keys, certificate requests and certificates for hpkp-gen. Please don't use them for 5 | anything except testing! 6 | 7 | To test hpkp-gen you can run one of the following example commands: 8 | 9 | `hpkp-gen example1.key example2.key` 10 | 11 | `hpkp-gen example1.csr example2.csr` 12 | 13 | `hpkp-gen example1.crt example2.crt` 14 | 15 | All should produce the same output: 16 | 17 | `Public-Key-Pins: max-age=5184000; pin-sha256="TcPnP28kGjkPyRoA0X47W3GZGlBTBRQvjBopIdqQ79s=";pin-sha256="Ogse+MdesZR9UWApeVWIMKiF8CpobFoIp/MEg+1DYZo=";` -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | discouraged 2 | =========== 3 | 4 | Chrome has decided to remove HPKP support as it has arguably created more 5 | problems than it solved. 6 | 7 | I'm not going to develop this script any more and will archive the repository, 8 | but you are of course free to fork it. 9 | 10 | hpkp 11 | ==== 12 | 13 | HTTP Public Key Pinning (HPKP) pin generation tools 14 | 15 | created by [Hanno Böck](https://hboeck.de) 16 | License: CC0 / Public Domain 17 | 18 | hpkp-gen 19 | ======== 20 | 21 | hpkp-gen will create public key pins to be used with the experimental 22 | HTTP Public Key Pinning (HPKP) header. HPKP is a promising technology 23 | to mitigate many problems of the current system of certificate 24 | authorities. 25 | 26 | hpkp-gen can read public keys from certificates (.crt), private keys (.key) 27 | and certificate requests (.csr). 28 | 29 | More Info 30 | ========= 31 | 32 | * [Public Key Pinning Extension for HTTP draft-ietf-websec-key-pinning-21](https://tools.ietf.org/html/draft-ietf-websec-key-pinning-20) 33 | -------------------------------------------------------------------------------- /example/example1.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIICijCCAXICAQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx 3 | ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDCCASIwDQYJKoZIhvcN 4 | AQEBBQADggEPADCCAQoCggEBALkSK2c3E212yfJO5hq4Fx0BT7V0qr8IObGtQldR 5 | 7KvzsbfYOvMzJ1UnYiSq5cr/QUHiaN5t521N1sjYTt1JDkqBVnqRASDh/BAMvNg3 6 | FiNKmny9aw580VHWYaI+i2ZDuGUSNcnGAcmmaX1JQQxacrf8Spx9T2HL1xtPdkCk 7 | aBAq4JVOOirCe3tjsMz6i66qrwV4Kf7ah4A0xFJS7S/JUFCNYvZwLM4ZcJRUsU2q 8 | k2gJEKfTLiMK1Td2SX58bf788jSQ8mR5hTaQ83qcq1eB0em1Wc7zlIlB+ljF5lLz 9 | gtUouBeLi3OwUKiBJ5OiR57Kb4Xefo53QNaJpOogLRXECDMCAwEAAaAAMA0GCSqG 10 | SIb3DQEBBQUAA4IBAQCMeBo3A8neYQrYM4TADcfGBBSBvfQTc6+HIKSLzobUcrwx 11 | NmaBeuUEvK3UYmlZJbntkyR2rNg821BTW0YdFqBnuiQObjgkKQ25Gs1iHaRq+8Fb 12 | Mu2hrSNeBosg0qXuKWIly34pivMOnzhjhFE0gqqoSWycyB3n3Q5VsRMN8c064XFm 13 | mUYiRYQGDMjIulcpEQtbEUBd/eKglYxyia9ERF73y/vQIcEW1oZ4ReYISEr7yT7f 14 | 5knOa9VwvPoVh96lS7sVQgkbcMVZSUwSE2KSOjGSWxcp8BbQBMH8gy4Hf6Zr0hyQ 15 | fggMNs/gKYBYlr3bA6kSovli0cX8MX20h6TiEZSW 16 | -----END CERTIFICATE REQUEST----- 17 | -------------------------------------------------------------------------------- /example/example2.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIICijCCAXICAQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx 3 | ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDCCASIwDQYJKoZIhvcN 4 | AQEBBQADggEPADCCAQoCggEBALvPcYx6MzcPgkTv119XrrTLSUMBUyBKN06zucVW 5 | CYLVt8l1QRRIVRhv7b2IovIWLpCSyGWmEUPwEPeNzKnwcgxa2XSCxtS1TjW21tC+ 6 | oPW+de2FwJIU/gjyPVXtJiZXfBQWhmukZSyH1Vd2joOxBrzeIDwBRCoM1XdEXJN7 7 | Zg1hZbUSfqsyoWlveo5egrOZn1m0/HPnW6cpswDq6u5tCtR8Yi+cP2osNsNvMiXM 8 | ejZsk26HLmu+Gm7X6gPKIHevgaHZ6gfSYhIlvuABQlX//FWEtr3s4oEEYCVbwjs5 9 | hZxDlqHmVWYox+GPkFjYwHwMqcbmtTLljCzgccqy0cXVcwECAwEAAaAAMA0GCSqG 10 | SIb3DQEBBQUAA4IBAQB0RzkYjVikgoe+shesccgf/TDNJZ/+vdtVYSO/HQ0o68yT 11 | HEAxBEUly6WdIzOErqYgCpJZN2u/VHSO0w6LL6/9f+LHZKWo4z8teug+N6JOQFPA 12 | Iv6IsZyLMlk1ayhvoUxt/SQNsjbMoK3QphuyvgHJ7VoBESmWUNU+fbRcwiXqKc/R 13 | wAXr+CDZlPcTpEIq/Jjj82/3OUprHErxkXWHQ4TTsHcTBYCWgnaQOrBB91WGPW0C 14 | asFGcoiCdkPvI2KsARHlxmfS6bCWbs3k0R3xQVB0ck1bG8qz0qJUkvyKjWHw5KA1 15 | q368NeJpP6TeJzfLP8Pz07WMCxA1VVDHbLCa+3ht 16 | -----END CERTIFICATE REQUEST----- 17 | -------------------------------------------------------------------------------- /hpkp-gen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # HTTP Public Key Pinning header pin generator 4 | # by Hanno Böck, https://hboeck.de 5 | # License: CC0 (public domain) 6 | # 7 | # https://tools.ietf.org/html/draft-ietf-websec-key-pinning-20 8 | 9 | if [ "$1" = "" ]; then 10 | echo "HKP header generator according to" 11 | echo "http://tools.ietf.org/html/draft-ietf-websec-key-pinning-20" 12 | echo "" 13 | echo "Usage: $0 [files]" 14 | echo "" 15 | echo "[files] should contain at least 2 files and can be of type" 16 | echo ".crt (certificate), .csr (certificate request) or" 17 | echo ".key (private key)" 18 | exit 1 19 | fi 20 | 21 | head="Public-Key-Pins: max-age=5184000; " 22 | 23 | c=0 24 | for f in "$@"; do 25 | if [ "${f: -4}" = ".crt" ]; then 26 | pkey=`openssl x509 -pubkey -noout -in $f` 27 | elif [ "${f: -4}" = ".csr" ]; then 28 | pkey=`openssl req -pubkey -noout -in $f` 29 | elif [ "${f: -4}" = ".key" ]; then 30 | pkey=`openssl pkey -in $f -pubout` 31 | else 32 | echo "$f is not a valid file format" 33 | exit -1 34 | fi 35 | let c+=1 36 | phash=`echo "$pkey"|grep -v PUBLIC|base64 -d|openssl dgst -sha256 -binary|base64` 37 | head="${head}pin-sha256=\"$phash\";" 38 | done 39 | 40 | [ $c -eq 1 ] && echo "Warning: HKP requires at least 2 keys" >&2 41 | echo $head 42 | 43 | -------------------------------------------------------------------------------- /example/example1.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDXTCCAkWgAwIBAgIJALb9CWVSBLeAMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV 3 | BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX 4 | aWRnaXRzIFB0eSBMdGQwHhcNMTQxMDE0MTE0MzM1WhcNMjQxMDExMTE0MzM1WjBF 5 | MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50 6 | ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB 7 | CgKCAQEAuRIrZzcTbXbJ8k7mGrgXHQFPtXSqvwg5sa1CV1Hsq/Oxt9g68zMnVSdi 8 | JKrlyv9BQeJo3m3nbU3WyNhO3UkOSoFWepEBIOH8EAy82DcWI0qafL1rDnzRUdZh 9 | oj6LZkO4ZRI1ycYByaZpfUlBDFpyt/xKnH1PYcvXG092QKRoECrglU46KsJ7e2Ow 10 | zPqLrqqvBXgp/tqHgDTEUlLtL8lQUI1i9nAszhlwlFSxTaqTaAkQp9MuIwrVN3ZJ 11 | fnxt/vzyNJDyZHmFNpDzepyrV4HR6bVZzvOUiUH6WMXmUvOC1Si4F4uLc7BQqIEn 12 | k6JHnspvhd5+jndA1omk6iAtFcQIMwIDAQABo1AwTjAdBgNVHQ4EFgQUE74FDOkK 13 | SfdWOBoPANwfSh1klNAwHwYDVR0jBBgwFoAUE74FDOkKSfdWOBoPANwfSh1klNAw 14 | DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAi4ru0pW1xi4wqFaMxA8h 15 | AKg0prR8SDyL+fPqRLPUr5GDeYMIh+JvdHNA4G+Y+fr281rEWPy+Ft11dik4STvd 16 | lKOavw2exAM0nMxKXTVK9jwL/iJ8XiXPBn7yalfVZnYuBzvQ0Hqeo7OjVHGZgcDm 17 | p3pjH2rUVkhMmAIMzWHBFCjvWhx1Foy9kOJYW2YwKPKAUm2BKLieAhWsOGEZJLFy 18 | JTHbcYZ8zIU+Xhfgg1LlwNWkMoktcI0IEdnLy+ZUP4gGz8ygEwZhRuNHWjT7VWzc 19 | W+PTBHoToU8keA5nQWziN8VOwmQ+xUzYaOYTmvwkXRvwTy28QFdRM6+ePAvec+p+ 20 | hQ== 21 | -----END CERTIFICATE----- 22 | -------------------------------------------------------------------------------- /example/example2.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDXTCCAkWgAwIBAgIJAPPA/2iPBcTGMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV 3 | BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX 4 | aWRnaXRzIFB0eSBMdGQwHhcNMTQxMD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 | -----END CERTIFICATE----- 22 | -------------------------------------------------------------------------------- /example/example1.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEowIBAAKCAQEAuRIrZzcTbXbJ8k7mGrgXHQFPtXSqvwg5sa1CV1Hsq/Oxt9g6 3 | 8zMnVSdiJKrlyv9BQeJo3m3nbU3WyNhO3UkOSoFWepEBIOH8EAy82DcWI0qafL1r 4 | DnzRUdZhoj6LZkO4ZRI1ycYByaZpfUlBDFpyt/xKnH1PYcvXG092QKRoECrglU46 5 | KsJ7e2OwzPqLrqqvBXgp/tqHgDTEUlLtL8lQUI1i9nAszhlwlFSxTaqTaAkQp9Mu 6 | IwrVN3ZJfnxt/vzyNJDyZHmFNpDzepyrV4HR6bVZzvOUiUH6WMXmUvOC1Si4F4uL 7 | c7BQqIEnk6JHnspvhd5+jndA1omk6iAtFcQIMwIDAQABAoIBAFLZ0npripP3mOKT 8 | 9alCfn5qpt9p8kKBESr8kHV85IH6H7ZY49MaNGKHtgUKSMM+0F0JWb8x3mftb9kM 9 | FQo1eWNbUXafUa0B3hDlUulMh+mWrWBof/PFZwPHAIBclZVbfcIpi9Dfhs9aY2FG 10 | GQvJtg+tr00tQAtc8Nh2E09PCpMpistAHzrnB1ziS6Yrw+T0dEV7XMM6nf0WyW+s 11 | +3UYWrjnyAGZy9j8/6x3B4MTQ/T9Ul8Fd8+AuFxTQvfxuJznlVjdJIxkUbLNagTG 12 | SNgcLWKjO7C7xYb/3Em5fJL9UabpKgKiVYcqpLK1WE/UnZ454CL6/Dy019GRBqEi 13 | TuGpjMkCgYEA8lyhVeNU0mK1hZTOV2ChuYZhmgFK1FaZFW1tRKzgg5wU2Dy+ab/0 14 | 1YUZenPGvVP2mRA+P1lH2tvaxXbqwslhX6dkEza+tYWmWBAyMpVuzjJPGtK+xLpc 15 | RnMahOfTd3SD7i4i+MTfiTtBs3cidnRX7LLENmBxnnIVpvBw7B8j/sUCgYEAw3w6 16 | xjganeb5Qa8JqL3S/T7NG7v8N9Q0PJxvqTVvwEt/ZqaEa3y0zInLImFHM/RsCDux 17 | quc/3lSzOrTnz8gXVYDb9LD2ti9kkPF+e5llOQFTbklw7/+2q1dJi/FcTDlc2wzx 18 | 3mG2+oeJpaUbktcfU6w84r9dCLJCsNk1X+eR2pcCgYBQHY63dY50fWzD24zaFXdg 19 | fKuG3SZ/SqEQFDwql3sgBlhdorbO/kVQz868S8lGjJrXvibVig3WqxaGb+jquucV 20 | V6AdOduQ5b03HyN41SzrvHWpyECHh5M5NpNtm7SrqDh0Y4vr8Ch0lMIDMT6TKaJm 21 | /DEgSIFGfy/pH1I0u5aKgQKBgQCDC1tnF6MYKQb8tjcWbDHtXFUo+2rHjjR6UTA1 22 | UUIZuUKtcIEigRW+a7zFzkpqFLb7CfE/LQhOpZ8EgtNHIc4qnlhU/vBUDw8ubwUo 23 | HBuUDER+kTLpYBV3ZOtDqcgCvQ13NoVJW13LMmLerQD//b/dWn/yTPAz7TPx05oJ 24 | MXY//wKBgCr+Y7mwPuOt7i31tN/B7Mw1hUfk6iwkT7QInOl8szlH6apM6XjcxpBP 25 | aXHme+LKiL1SDaZ5mTki0MhvyOavjoa2FA4Qd0NiM8NsrGzHkqups2clFex9cFFR 26 | /Ty7wFoN9Fdm2b04DrILTTu1Qzex4YNn+0bUy83LGVDdRClEOHfr 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /example/example2.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpQIBAAKCAQEAu89xjHozNw+CRO/XX1eutMtJQwFTIEo3TrO5xVYJgtW3yXVB 3 | FEhVGG/tvYii8hYukJLIZaYRQ/AQ943MqfByDFrZdILG1LVONbbW0L6g9b517YXA 4 | khT+CPI9Ve0mJld8FBaGa6RlLIfVV3aOg7EGvN4gPAFEKgzVd0Rck3tmDWFltRJ+ 5 | qzKhaW96jl6Cs5mfWbT8c+dbpymzAOrq7m0K1HxiL5w/aiw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0PUCM0zS++5LRTNHn6Co0vTFkan 22 | JhPVr4MzxIaIMlCzk93QTFn65GcJrE7uZnqWS79KXkzUjcGkODNYtY34N9XvM/na 23 | EBDYdrrzQ2hM9KhrljHx0Dc4SKuyKg3X2fC6cgdgbgi6rhqhH29cUywpUJl8zwv2 24 | VxolpYLtAoGAcwNY9Mn41cL8OryBhZ/J162+xkqOu6yt7O4r8Oq5MjUPr2FQh+nY 25 | /VyrnLcPJlwL8NTzWGQgNCH+df+701T0jQ9AJpe9XcHaCazLzhlOB9eAXbY9WW4O 26 | y1Hi0F9gr4LQlM6GkEdl0oddADwrWYWI6aIs23zU51s+mXZT/ZPUpmA= 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | CC0 1.0 Universal 2 | 3 | Statement of Purpose 4 | 5 | The laws of most jurisdictions throughout the world automatically confer 6 | exclusive Copyright and Related Rights (defined below) upon the creator and 7 | subsequent owner(s) (each and all, an "owner") of an original work of 8 | authorship and/or a database (each, a "Work"). 9 | 10 | Certain owners wish to permanently relinquish those rights to a Work for the 11 | purpose of contributing to a commons of creative, cultural and scientific 12 | works ("Commons") that the public can reliably and without fear of later 13 | claims of infringement build upon, modify, incorporate in other works, reuse 14 | and redistribute as freely as possible in any form whatsoever and for any 15 | purposes, including without limitation commercial purposes. These owners may 16 | contribute to the Commons to promote the ideal of a free culture and the 17 | further production of creative, cultural and scientific works, or to gain 18 | reputation or greater distribution for their Work in part through the use and 19 | efforts of others. 20 | 21 | For these and/or other purposes and motivations, and without any expectation 22 | of additional consideration or compensation, the person associating CC0 with a 23 | Work (the "Affirmer"), to the extent that he or she is an owner of Copyright 24 | and Related Rights in the Work, voluntarily elects to apply CC0 to the Work 25 | and publicly distribute the Work under its terms, with knowledge of his or her 26 | Copyright and Related Rights in the Work and the meaning and intended legal 27 | effect of CC0 on those rights. 28 | 29 | 1. Copyright and Related Rights. A Work made available under CC0 may be 30 | protected by copyright and related or neighboring rights ("Copyright and 31 | Related Rights"). Copyright and Related Rights include, but are not limited 32 | to, the following: 33 | 34 | i. the right to reproduce, adapt, distribute, perform, display, communicate, 35 | and translate a Work; 36 | 37 | ii. moral rights retained by the original author(s) and/or performer(s); 38 | 39 | iii. publicity and privacy rights pertaining to a person's image or likeness 40 | depicted in a Work; 41 | 42 | iv. rights protecting against unfair competition in regards to a Work, 43 | subject to the limitations in paragraph 4(a), below; 44 | 45 | v. rights protecting the extraction, dissemination, use and reuse of data in 46 | a Work; 47 | 48 | vi. database rights (such as those arising under Directive 96/9/EC of the 49 | European Parliament and of the Council of 11 March 1996 on the legal 50 | protection of databases, and under any national implementation thereof, 51 | including any amended or successor version of such directive); and 52 | 53 | vii. other similar, equivalent or corresponding rights throughout the world 54 | based on applicable law or treaty, and any national implementations thereof. 55 | 56 | 2. Waiver. To the greatest extent permitted by, but not in contravention of, 57 | applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and 58 | unconditionally waives, abandons, and surrenders all of Affirmer's Copyright 59 | and Related Rights and associated claims and causes of action, whether now 60 | known or unknown (including existing as well as future claims and causes of 61 | action), in the Work (i) in all territories worldwide, (ii) for the maximum 62 | duration provided by applicable law or treaty (including future time 63 | extensions), (iii) in any current or future medium and for any number of 64 | copies, and (iv) for any purpose whatsoever, including without limitation 65 | commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes 66 | the Waiver for the benefit of each member of the public at large and to the 67 | detriment of Affirmer's heirs and successors, fully intending that such Waiver 68 | shall not be subject to revocation, rescission, cancellation, termination, or 69 | any other legal or equitable action to disrupt the quiet enjoyment of the Work 70 | by the public as contemplated by Affirmer's express Statement of Purpose. 71 | 72 | 3. Public License Fallback. Should any part of the Waiver for any reason be 73 | judged legally invalid or ineffective under applicable law, then the Waiver 74 | shall be preserved to the maximum extent permitted taking into account 75 | Affirmer's express Statement of Purpose. In addition, to the extent the Waiver 76 | is so judged Affirmer hereby grants to each affected person a royalty-free, 77 | non transferable, non sublicensable, non exclusive, irrevocable and 78 | unconditional license to exercise Affirmer's Copyright and Related Rights in 79 | the Work (i) in all territories worldwide, (ii) for the maximum duration 80 | provided by applicable law or treaty (including future time extensions), (iii) 81 | in any current or future medium and for any number of copies, and (iv) for any 82 | purpose whatsoever, including without limitation commercial, advertising or 83 | promotional purposes (the "License"). The License shall be deemed effective as 84 | of the date CC0 was applied by Affirmer to the Work. Should any part of the 85 | License for any reason be judged legally invalid or ineffective under 86 | applicable law, such partial invalidity or ineffectiveness shall not 87 | invalidate the remainder of the License, and in such case Affirmer hereby 88 | affirms that he or she will not (i) exercise any of his or her remaining 89 | Copyright and Related Rights in the Work or (ii) assert any associated claims 90 | and causes of action with respect to the Work, in either case contrary to 91 | Affirmer's express Statement of Purpose. 92 | 93 | 4. Limitations and Disclaimers. 94 | 95 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 96 | surrendered, licensed or otherwise affected by this document. 97 | 98 | b. Affirmer offers the Work as-is and makes no representations or warranties 99 | of any kind concerning the Work, express, implied, statutory or otherwise, 100 | including without limitation warranties of title, merchantability, fitness 101 | for a particular purpose, non infringement, or the absence of latent or 102 | other defects, accuracy, or the present or absence of errors, whether or not 103 | discoverable, all to the greatest extent permissible under applicable law. 104 | 105 | c. Affirmer disclaims responsibility for clearing rights of other persons 106 | that may apply to the Work or any use thereof, including without limitation 107 | any person's Copyright and Related Rights in the Work. Further, Affirmer 108 | disclaims responsibility for obtaining any necessary consents, permissions 109 | or other rights required for any use of the Work. 110 | 111 | d. Affirmer understands and acknowledges that Creative Commons is not a 112 | party to this document and has no duty or obligation with respect to this 113 | CC0 or use of the Work. 114 | 115 | For more information, please see 116 | 117 | --------------------------------------------------------------------------------