certbot-angie/etc/letsencrypt/renewal-hooks/deploy/ocsp

20 lines
316 B
Plaintext
Raw Permalink Normal View History

2024-06-12 03:22:03 +03:00
#!/bin/sh
set -ef
: "${RENEWED_LINEAGE:?}"
d="${RENEWED_LINEAGE}"
[ -d "$d" ] || {
env printf '%s: not a directory: %q\n' "$0" "$d" >&2
exit 1
}
chain="$d/chain.pem"
cert="$d/cert.pem"
ocsp="$d/ocsp.der"
[ -s "${cert}" ] || exit 2
[ -s "${chain}" ] || exit 3
exec openssl-ocsp "${chain}" "${cert}" "${ocsp}"