Simon V.
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
30 deletions
-
acme.sh
|
|
@ -6603,36 +6603,6 @@ deactivate() { |
|
|
|
done |
|
|
|
} |
|
|
|
|
|
|
|
#cert |
|
|
|
_getAKI() { |
|
|
|
_cert="$1" |
|
|
|
openssl x509 -in "$_cert" -text -noout | grep "X509v3 Authority Key Identifier" -A 1 | _tail_n 1 | tr -d ' :' |
|
|
|
} |
|
|
|
|
|
|
|
#cert |
|
|
|
_getSerial() { |
|
|
|
_cert="$1" |
|
|
|
openssl x509 -in "$_cert" -serial -noout | cut -d = -f 2 |
|
|
|
} |
|
|
|
|
|
|
|
#cert |
|
|
|
_get_ARI() { |
|
|
|
_cert="$1" |
|
|
|
_aki=$(_getAKI "$_cert") |
|
|
|
_ser=$(_getSerial "$_cert") |
|
|
|
_debug2 "_aki" "$_aki" |
|
|
|
_debug2 "_ser" "$_ser" |
|
|
|
|
|
|
|
_akiurl="$(echo "$_aki" | _h2b | _base64 | tr -d = | _url_encode)" |
|
|
|
_debug2 "_akiurl" "$_akiurl" |
|
|
|
_serurl="$(echo "$_ser" | _h2b | _base64 | tr -d = | _url_encode)" |
|
|
|
_debug2 "_serurl" "$_serurl" |
|
|
|
|
|
|
|
_ARI_URL="$ACME_RENEWAL_INFO/$_akiurl.$_serurl" |
|
|
|
_get "$_ARI_URL" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
# Detect profile file if not specified as environment variable |
|
|
|
_detect_profile() { |
|
|
|
if [ -n "$PROFILE" -a -f "$PROFILE" ]; then |
|
|
|