diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-07-10 01:16:00 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-07-10 01:16:00 +0200 |
commit | 02772c92ce74490ce60792b0543d60ce71f28e42 (patch) | |
tree | e0c2ee2b76d00863f217cc3ea2c52846ec515b91 /certs/gencerts.sh | |
parent | b441dd4a7c3ce72008968d324a12e5c342d164a3 (diff) |
Change the pubkey extension from .pem to .pub.
Diffstat (limited to 'certs/gencerts.sh')
-rwxr-xr-x | certs/gencerts.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/certs/gencerts.sh b/certs/gencerts.sh index 099d846..9318e42 100755 --- a/certs/gencerts.sh +++ b/certs/gencerts.sh @@ -20,7 +20,7 @@ usage() { x509fpr() { local msg="$1" host cert h spki host="${msg%%,*}"; host="${host%% *}"; host="${host#\`}" - cert="$DIR/${host%%:*}.pem" + cert="$DIR/${host%%:*}.pub" spki=$(openssl pkey -pubin -outform DER <"$cert" | openssl dgst -sha256 | sed -nr 's/^[^=]+=\s*//p') [ "$typ" = mdwn ] && printf '\n [%s](https://crt.sh/?spkisha256=%s&iCAID=16418)\n\n' "$msg" "$spki" \ || printf ' %s\n X.509: https://crt.sh/?spkisha256=%s&iCAID=16418\n SPKI:\n' \ |