hpkp icon indicating copy to clipboard operation
hpkp copied to clipboard

OpenSSL only

Open frank-f opened this issue 11 years ago • 3 comments

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.

frank-f avatar Nov 14 '14 20:11 frank-f

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

Fleshgrinder avatar Nov 14 '14 20:11 Fleshgrinder

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

frank-f avatar Nov 14 '14 20:11 frank-f

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

Fleshgrinder avatar Nov 14 '14 20:11 Fleshgrinder