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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
certman
Commits
310a56df
Commit
310a56df
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: copy key from csr folder to ~/.acme/
parent
34b28637
No related branches found
No related tags found
1 merge request
!2
Bugfix: copy key from csr folder to ~/.acme/
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cm.sh
+15
-0
15 additions, 0 deletions
cm.sh
with
15 additions
and
0 deletions
cm.sh
+
15
−
0
View file @
310a56df
...
...
@@ -27,6 +27,7 @@
# 2022-01-10 <axel.hahn@iml.unibe.ch> _wait_for_free_slot: exclude ssh calls
# 2022-03-30 <axel.hahn@iml.unibe.ch> remove usage of csr and generation of key file
# 2022-03-31 <axel.hahn@iml.unibe.ch> dns authentication with alias domain
# 2022-04-04 <axel.hahn@iml.unibe.ch> Bugfix: copy key from csr folder to ~/.acme/
# ======================================================================
...
...
@@ -516,6 +517,20 @@ function public_renew(){
_wait_for_free_slot
_requiresFqdn
_certMustExist
# BUGFIX: acme.sh does not create a new key file on renew.
# After switching from csr method to pram -d we got a 0 byte Keyfile
local
_acme_keyfile
=
"~/.acme/
${
CM_fqdn
}
/
${
CM_fqdn
}
.key"
if
test
!
-f
"
$_acme_keyfile
"
then
echo
"FIX: copy key from csr folder
$CM_filekey
to
$_acme_keyfile
"
if
!
cp
"
$CM_filekey
"
"
$_acme_keyfile
"
then
exit
1
fi
fi
# /BUGFIX
$ACME
--renew
-d
${
CM_fqdn
}
$ACME_Params
local
_rc
=
$?
...
...
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