set --
[ "$debug" = 1 ] && set -- "$@" --debug
- case $keylength in
- ec-*)
+ case $key_type in
+ ec*)
+ keylength=${key_type/ec/ec-}
domain_dir="$state_dir/${main_domain}_ecc"
set -- "$@" --ecc
;;
- *)
+ rsa*)
+ keylength=${key_type#rsa}
domain_dir="$state_dir/$main_domain"
;;
esac
export domains
export main_domain
main_domain="$(first_arg $domains)"
- config_get keylength "$section" keylength ec-256
- export keylength
+ config_get keylength "$section" keylength
+ if [ "$keylength" ]; then
+ log warn "Option \"keylength\" is deprecated, please use key_type (e.g., ec256, rsa2048) instead."
+ case $keylength in
+ ec-*) key_type=${keylength/-/} ;;
+ *) key_type=rsa$keylength ;;
+ esac
+ else
+ config_get key_type "$section" key_type ec256
+ fi
+ export key_type
config_get dns "$section" dns
export dns
config_get acme_server "$section" acme_server
[ -n "$standalone" ] && log warn "Option \"standalone\" is deprecated."
config_get dns_wait "$section" dns_wait
export dns_wait
-
config_get webroot "$section" webroot
export webroot
if [ "$webroot" ]; then