Browse Source

Improve readability of list command

Display the default key length of domain certificates when listing certificates if no key length is explicitly set. Wrap value in square brackets to indicate default value, or double quotes to indicate an explicit value.
pull/1440/head
Alex 7 years ago
committed by GitHub
parent
commit
66db1332c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      acme.sh

7
acme.sh

@ -4534,7 +4534,12 @@ list() {
_initpath "$d" "$_isEcc" _initpath "$d" "$_isEcc"
if [ -f "$DOMAIN_CONF" ]; then if [ -f "$DOMAIN_CONF" ]; then
. "$DOMAIN_CONF" . "$DOMAIN_CONF"
printf "%s\n" "$Le_Domain${_sep}\"$Le_Keylength\"${_sep}$Le_Alt${_sep}$Le_CertCreateTimeStr${_sep}$Le_NextRenewTimeStr"
if [ -z "$Le_Keylength" ]; then
local Le_HR_Key_Length="[$DEFAULT_DOMAIN_KEY_LENGTH]"
else
local Le_HR_Key_Length="\"$Le_Keylength\""
fi
printf "%s\n" "$Le_Domain${_sep}$Le_HR_Key_Length${_sep}$Le_Alt${_sep}$Le_CertCreateTimeStr${_sep}$Le_NextRenewTimeStr"
fi fi
) )
done done

Loading…
Cancel
Save