Browse Source

feat: Add support for --bearer argument in acme.sh for DNS authentication

- Added `--bearer` argument parsing in the CLI.
- Integrated `_bearer` token support in DNS functions (e.g., dns_20i_add).
- Ensures bearer tokens can be passed as arguments or environment variables.
- Updated usage and debug outputs for clarity.
pull/6335/head
Eng Acs 12 months ago
parent
commit
ca63b8a502
  1. 8
      acme.sh

8
acme.sh

@ -7577,6 +7577,14 @@ _process() {
_webroot="$_webroot,$wvalue"
fi
;;
--bearer)
bearer_value=""
if [ "$2" ] && ! _startswith "$2" "-"; then
bearer_value="$2"
shift
fi
_bearer="$bearer_value"
;;
--dnssleep)
_dnssleep="$2"
Le_DNSSleep="$_dnssleep"

Loading…
Cancel
Save