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 | |
parent | b441dd4a7c3ce72008968d324a12e5c342d164a3 (diff) |
Change the pubkey extension from .pem to .pub.
Diffstat (limited to 'certs')
-rwxr-xr-x | certs/gencerts.sh | 2 | ||||
-rw-r--r-- | certs/public/fripost.org.pub (renamed from certs/public/fripost.org.pem) | 0 | ||||
-rw-r--r-- | certs/public/git.fripost.org.pub (renamed from certs/public/git.fripost.org.pem) | 0 | ||||
-rw-r--r-- | certs/public/imap.fripost.org.pub (renamed from certs/public/imap.fripost.org.pem) | 0 | ||||
-rw-r--r-- | certs/public/lists.fripost.org.pub (renamed from certs/public/lists.fripost.org.pem) | 0 | ||||
-rw-r--r-- | certs/public/mail.fripost.org.pub (renamed from certs/public/mail.fripost.org.pem) | 0 | ||||
-rw-r--r-- | certs/public/mx1.fripost.org.pub (renamed from certs/public/mx1.fripost.org.pem) | 0 | ||||
-rw-r--r-- | certs/public/mx2.fripost.org.pub (renamed from certs/public/mx2.fripost.org.pem) | 0 | ||||
-rw-r--r-- | certs/public/smtp.fripost.org.pub (renamed from certs/public/smtp.fripost.org.pem) | 0 |
9 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 @@ -3,41 +3,41 @@ set -ue PATH=/usr/bin:/bin if [ -n "${GNUPGBIN:-}" ]; then GPG="$GNUPGBIN" elif [ -x /usr/bin/gpg2 ]; then GPG=/usr/bin/gpg2 else GPG=gpg fi GPG_OPTS='--no-auto-check-trustdb --batch --no-verbose --yes' usage() { echo "Usage: $0 /path/to/certs.asc" >&2 exit 1 } 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' \ "$( echo "$msg" | tr -d '`' )" "$spki" for h in sha1 sha256; do [ "$typ" = mdwn ] || echo -n ' ' echo -n "$h" | tr '[a-z]' '[A-Z]' for i in $(seq 1 $((7 - ${#h}))); do echo -n ' '; done openssl pkey -pubin -outform DER <"$cert" | openssl dgst -"$h" -c | sed -nr 's/^[^=]+=\s*//p' done | sed -r "s/(\S+)(.*)/$indent\1\U\2/" } sshfpr() { local msg="$1" host t h fpr host="${msg%%,*}"; host="${host%% *}"; host="${host#*@}"; host="${host#\`}"; host="${host%\`}" [ "$typ" = mdwn ] && { echo; echo " $msg"; echo; } || { echo " $msg" | tr -d '`'; } [ "${host#*:}" != 22 ] || host="${host%%:*}" for h in MD5 SHA256; do ssh-keygen -E "$h" -f "$DIR/../ssh_known_hosts" -lF "${host#*@}" done | sed -nr 's/^[^ #]+\s+//p' | sed -r 's/^(\S+)\s+(MD5|SHA256):/\1 \2 /' | diff --git a/certs/public/fripost.org.pem b/certs/public/fripost.org.pub index 48298e0..48298e0 100644 --- a/certs/public/fripost.org.pem +++ b/certs/public/fripost.org.pub diff --git a/certs/public/git.fripost.org.pem b/certs/public/git.fripost.org.pub index 289261a..289261a 100644 --- a/certs/public/git.fripost.org.pem +++ b/certs/public/git.fripost.org.pub diff --git a/certs/public/imap.fripost.org.pem b/certs/public/imap.fripost.org.pub index 8481196..8481196 100644 --- a/certs/public/imap.fripost.org.pem +++ b/certs/public/imap.fripost.org.pub diff --git a/certs/public/lists.fripost.org.pem b/certs/public/lists.fripost.org.pub index 0e520ad..0e520ad 100644 --- a/certs/public/lists.fripost.org.pem +++ b/certs/public/lists.fripost.org.pub diff --git a/certs/public/mail.fripost.org.pem b/certs/public/mail.fripost.org.pub index c6852f6..c6852f6 100644 --- a/certs/public/mail.fripost.org.pem +++ b/certs/public/mail.fripost.org.pub diff --git a/certs/public/mx1.fripost.org.pem b/certs/public/mx1.fripost.org.pub index d2b978c..d2b978c 100644 --- a/certs/public/mx1.fripost.org.pem +++ b/certs/public/mx1.fripost.org.pub diff --git a/certs/public/mx2.fripost.org.pem b/certs/public/mx2.fripost.org.pub index 3bdb105..3bdb105 100644 --- a/certs/public/mx2.fripost.org.pem +++ b/certs/public/mx2.fripost.org.pub diff --git a/certs/public/smtp.fripost.org.pem b/certs/public/smtp.fripost.org.pub index fa89958..fa89958 100644 --- a/certs/public/smtp.fripost.org.pem +++ b/certs/public/smtp.fripost.org.pub |