Skip to content
Snippets Groups Projects
Commit 22065c3a authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update text output

parent 8d0b76f4
No related branches found
No related tags found
1 merge request!25update text output
......@@ -578,6 +578,11 @@ function public_add(){
local iCounter
typeset -i iCounter=0
_wd "--- create output dir $dircerts"
mkdir -p "${CM_dircerts}" 2>/dev/null
_wd "--- issue certificate"
for _mydomain in $CM_fqdn $*
do
iCounter+=1
......@@ -585,7 +590,7 @@ function public_add(){
if [ -n "$CM_webroot" ]
then
echo "WEBROOT found"
echo "INFO: Using http request on port 80 as challenge; put file into $CM_webroot"
if [ $iCounter -eq 1 ]
then
_params+="-w $CM_webroot "
......@@ -593,6 +598,7 @@ function public_add(){
else
if [ -n "${CM_challenge_alias}" ]
then
echo "INFO: Using DNS for challenge"
_params+=" --challenge-alias "
if ! echo "$_mydomain" | grep "${CM_certmatch}" >/dev/null
then
......@@ -607,10 +613,6 @@ function public_add(){
# 2023-05-08: Specifies the domain key length
_params+="--keylength 2048 "
_wd "--- create output dir $dircerts"
mkdir -p "${CM_dircerts}" 2>/dev/null
_wd "--- create certificate"
echo "$ACME --issue $_params $ACME_Params"
if ! $ACME --issue $_params $ACME_Params
then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment