Skip to content

Commit d439933

Browse files
authored
add Profile column to --list output
This commit adds a new "Profile" column to the output of the `--list` command. The column displays the value of the `Le_Certificate_Profile` variable stored in each domain's respective configuration file. If a profile is not set for a certificate, the column is left empty. This enhances the utility of the list command by providing more at-a-glance information about each certificate's configuration, which is particularly useful for CAs that support different certificate profiles.
1 parent 094d03b commit d439933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

acme.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5804,7 +5804,7 @@ list() {
58045804
_sep="|"
58055805
if [ "$_raw" ]; then
58065806
if [ -z "$_domain" ]; then
5807-
printf "%s\n" "Main_Domain${_sep}KeyLength${_sep}SAN_Domains${_sep}CA${_sep}Created${_sep}Renew"
5807+
printf "%s\n" "Main_Domain${_sep}KeyLength${_sep}SAN_Domains${_sep}Profile${_sep}CA${_sep}Created${_sep}Renew"
58085808
fi
58095809
for di in "${CERT_HOME}"/*.*/; do
58105810
d=$(basename "$di")
@@ -5819,7 +5819,7 @@ list() {
58195819
. "$DOMAIN_CONF"
58205820
_ca="$(_getCAShortName "$Le_API")"
58215821
if [ -z "$_domain" ]; then
5822-
printf "%s\n" "$Le_Domain${_sep}\"$Le_Keylength\"${_sep}$Le_Alt${_sep}$_ca${_sep}$Le_CertCreateTimeStr${_sep}$Le_NextRenewTimeStr"
5822+
printf "%s\n" "$Le_Domain${_sep}\"$Le_Keylength\"${_sep}$Le_Alt${_sep}$Le_Certificate_Profile${_sep}$_ca${_sep}$Le_CertCreateTimeStr${_sep}$Le_NextRenewTimeStr"
58235823
else
58245824
if [ "$_domain" = "$d" ]; then
58255825
cat "$DOMAIN_CONF"

0 commit comments

Comments
 (0)