From ec54b9528b2eb32d5775bc1ff3566f1e2e2db955 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 26 Oct 2015 17:11:38 +0100 Subject: Add new scripts Signed-off-by: Florian Pritz --- cert2curlpub | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 cert2curlpub (limited to 'cert2curlpub') diff --git a/cert2curlpub b/cert2curlpub new file mode 100755 index 0000000..81bd07d --- /dev/null +++ b/cert2curlpub @@ -0,0 +1,4 @@ +#!/bin/bash + +hash=$(sed -n '/-----BEGIN/,/-----END/p' | openssl x509 -noout -pubkey | openssl rsa -noout -pubin -outform DER | openssl dgst -sha256 -binary | openssl enc -base64) +echo "sha256//$hash" -- cgit v1.2.3-24-g4f1b