Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
certman
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
certman
Commits
73a3a6b5
Commit
73a3a6b5
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
mix multiple domains using domain alias or not
parent
f3653bc4
No related branches found
No related tags found
1 merge request
!13
mix multiple domains using domain alias or not
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cm.sh
+6
-3
6 additions, 3 deletions
cm.sh
with
6 additions
and
3 deletions
cm.sh
+
6
−
3
View file @
73a3a6b5
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
# 2022-04-04 <axel.hahn@iml.unibe.ch> added param "list-old"
# 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-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-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(){
...
@@ -406,11 +407,13 @@ function public_add(){
for
_mydomain
in
$CM_fqdn
$*
for
_mydomain
in
$CM_fqdn
$*
do
do
_params+
=
"-d
$_mydomain
"
_params+
=
"-d
$_mydomain
--challenge-alias
"
if
[
-n
"
${
CM_challenge_alias
}
"
]
&&
!
echo
"
$_mydomain
"
|
grep
"
${
CM_certmatch
}
"
>
/dev/null
if
[
-n
"
${
CM_challenge_alias
}
"
]
&&
!
echo
"
$_mydomain
"
|
grep
"
${
CM_certmatch
}
"
>
/dev/null
then
then
_params+
=
"--challenge-alias
${
CM_challenge_alias
}
"
_params+
=
"
${
CM_challenge_alias
}
"
else
_params+
=
"no "
fi
fi
done
done
...
@@ -418,7 +421,7 @@ function public_add(){
...
@@ -418,7 +421,7 @@ function public_add(){
mkdir
-p
"
${
CM_dircerts
}
"
2>/dev/null
mkdir
-p
"
${
CM_dircerts
}
"
2>/dev/null
_wd
"--- create certificate"
_wd
"--- create certificate"
echo
$ACME
--issue
$_params
$ACME_Params
echo
"
$ACME
--issue
$_params
$ACME_Params
"
if
!
$ACME
--issue
$_params
$ACME_Params
if
!
$ACME
--issue
$_params
$ACME_Params
then
then
echo
"ERROR: adding cert failed. Trying to delete internal data ..."
echo
"ERROR: adding cert failed. Trying to delete internal data ..."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment