Skip to content
Snippets Groups Projects

update text output

Merged Hahn Axel (hahn) requested to merge add-http-challenge into master
1 file
+ 8
6
Compare changes
  • Side-by-side
  • Inline
+ 8
6
@@ -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
@@ -929,7 +931,7 @@ cat <<ENDOFHEADER
$line
- - - ---===>>> CERT MANAGER - v$_version <<<===--- - - -
- - - ---===>>> CERT MANAGER - v$_version <<<===--- - - -
$line
Loading