Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IML Open Source
certman
Commits
73a3a6b5
Commit
73a3a6b5
authored
Apr 21, 2022
by
Hahn Axel (hahn)
Browse files
mix multiple domains using domain alias or not
parent
f3653bc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
cm.sh
View file @
73a3a6b5
...
...
@@ -31,6 +31,7 @@
# 2022-04-04 <axel.hahn@iml.unibe.ch> added param "list-old"
# 2022-04-07 <axel.hahn@iml.unibe.ch> fix missing key in public_ensure before calling public_add too.
# 2022-04-20 <axel.hahn@iml.unibe.ch> fix multiple domains using domain alias
# 2022-04-21 <axel.hahn@iml.unibe.ch> mix multiple domains using domain alias or not
# ======================================================================
...
...
@@ -406,11 +407,13 @@ function public_add(){
for
_mydomain
in
$CM_fqdn
$*
do
_params+
=
"-d
$_mydomain
"
_params+
=
"-d
$_mydomain
--challenge-alias
"
if
[
-n
"
${
CM_challenge_alias
}
"
]
&&
!
echo
"
$_mydomain
"
|
grep
"
${
CM_certmatch
}
"
>
/dev/null
then
_params+
=
"--challenge-alias
${
CM_challenge_alias
}
"
_params+
=
"
${
CM_challenge_alias
}
"
else
_params+
=
"no "
fi
done
...
...
@@ -418,7 +421,7 @@ function public_add(){
mkdir
-p
"
${
CM_dircerts
}
"
2>/dev/null
_wd
"--- create certificate"
echo
$ACME
--issue
$_params
$ACME_Params
echo
"
$ACME
--issue
$_params
$ACME_Params
"
if
!
$ACME
--issue
$_params
$ACME_Params
then
echo
"ERROR: adding cert failed. Trying to delete internal data ..."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment