|
@@ -170,11 +170,12 @@ If you enter '.', the field will be left blank.
|
|
|
openssl req -new -newkey rsa:2048 -sha256 -nodes -out ${PATH_SSL}/${domain}.csr -keyout ${PATH_SSL}/${domain}.key -subj "/C=${SELFSIGNEDSSL_C}/ST=${SELFSIGNEDSSL_ST}/L=${SELFSIGNEDSSL_L}/O=${SELFSIGNEDSSL_O}/OU=${SELFSIGNEDSSL_OU}/CN=${domain}" > /dev/null 2>&1
|
|
|
openssl x509 -req -days 36500 -sha256 -in ${PATH_SSL}/${domain}.csr -signkey ${PATH_SSL}/${domain}.key -out ${PATH_SSL}/${domain}.crt > /dev/null 2>&1
|
|
|
elif [ "${Domian_Mode}" == '3' -o "${ARG1}" == 'dnsapi' ]; then
|
|
|
- echo "${CMSG}More: https://oneinstack.com/faq/letsencrypt${CEND}"
|
|
|
- if [ "${moredomain}" == "*.${domain}" ]; then
|
|
|
+ if [ "${moredomain}" == "*.${domain}" -o "${ARG1}" == 'dnsapi' ]; then
|
|
|
while :; do echo
|
|
|
- read -p "Please enter your DNS provider: " DNS_PRO
|
|
|
+ echo 'Please select DNS provider:'
|
|
|
echo "${CMSG}dp${CEND},${CMSG}cx${CEND},${CMSG}ali${CEND},${CMSG}cf${CEND},${CMSG}aws${CEND},${CMSG}linode${CEND},${CMSG}he${CEND},${CMSG}namesilo${CEND},${CMSG}dgon${CEND},${CMSG}freedns${CEND},${CMSG}gd${CEND},${CMSG}namecom${CEND} and so on."
|
|
|
+ echo "${CMSG}More: https://oneinstack.com/faq/letsencrypt${CEND}"
|
|
|
+ read -p "Please enter your DNS provider: " DNS_PRO
|
|
|
if [ -e ~/.acme.sh/dnsapi/dns_${DNS_PRO}.sh ]; then
|
|
|
break
|
|
|
else
|