mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 04:22:44 +00:00
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.
This commit is contained in:
parent
63078470c2
commit
ca63b8a502
8
acme.sh
8
acme.sh
@ -7577,6 +7577,14 @@ _process() {
|
|||||||
_webroot="$_webroot,$wvalue"
|
_webroot="$_webroot,$wvalue"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
--bearer)
|
||||||
|
bearer_value=""
|
||||||
|
if [ "$2" ] && ! _startswith "$2" "-"; then
|
||||||
|
bearer_value="$2"
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
_bearer="$bearer_value"
|
||||||
|
;;
|
||||||
--dnssleep)
|
--dnssleep)
|
||||||
_dnssleep="$2"
|
_dnssleep="$2"
|
||||||
Le_DNSSleep="$_dnssleep"
|
Le_DNSSleep="$_dnssleep"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user