Open frank-f opened 10 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.
See also https://github.com/hannob/hpkp/pull/3.
Ah, sorry, I did not see that. Somebody should merge it...
I applied the changes in my fork, I can't do anything here.
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.