hannob / hpkp

HTTP Public Key Pinning (HPKP) pin generation tools
Creative Commons Zero v1.0 Universal
71 stars 19 forks source link

OpenSSL only #4

Open frank-f opened 9 years ago

frank-f commented 9 years ago

This could also be done without needing other binaries besides openssl (and grep). On FreeBSD I could not find xxd or a suitable replacement for it, so I changed the script around a little bit:

echo "$pkey" | grep -v PUBLIC | openssl enc -base64 -d | openssl dgst -binary -sha256 | openssl enc -base64

This should work on any system with OpenSSL 0.9.8o or newer.

Fleshgrinder commented 9 years ago

See also https://github.com/hannob/hpkp/pull/3.

frank-f commented 9 years ago

Ah, sorry, I did not see that. Somebody should merge it...

Fleshgrinder commented 9 years ago

I applied the changes in my fork, I can't do anything here.