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
a2d1c068
Commit
a2d1c068
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add param add-or-renew
parent
2353823a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cm.sh
+25
-2
25 additions, 2 deletions
cm.sh
readme.md
+10
-3
10 additions, 3 deletions
readme.md
with
35 additions
and
5 deletions
cm.sh
+
25
−
2
View file @
a2d1c068
...
...
@@ -213,6 +213,21 @@ function public_add(){
_update
"added
$CM_fqdn
$*
"
}
#
# pulic function ADD OR RENEW certificate
#
function
public_add-or-renew
(){
_requiresFqdn
_certExists
if
[
$?
-eq
0
]
;
then
_wd
"--- cert was found ... renew it"
public_renew
else
_wd
"--- cert does mot exist ... add it"
public_add
fi
}
#
# public function to delete a cert
#
...
...
@@ -343,12 +358,20 @@ $self ACTION [FQDN]
The ACTIONs for single certificate handlings are:
add
FQDN [.. FQDN-N]
create new certificate
... or force it
add FQDN [.. FQDN-N]
create new certificate
The first FQDN is a hostname to generate the certificate for.
Following multiple hostnames will be used as DNS aliases in the
same certificate.
add-or-renew FQDN [.. FQDN-N]
This param is for automation tools like Ansible or Puppet.
It checks if the certificate for first (*) FQDN exists.
If not: add a new cert (see "add").
If so: call renew action (see "renew")
(*) it doesn't verify the DNS aliases
delete FQDN
delete a given certificate
...
...
This diff is collapsed.
Click to expand it.
readme.md
+
10
−
3
View file @
a2d1c068
...
...
@@ -37,12 +37,20 @@ cm.sh ACTION [FQDN]
The ACTIONs for single certificate handlings are:
add
FQDN [.. FQDN-N]
create new certificate
... or force it
add FQDN [.. FQDN-N]
create new certificate
The first FQDN is a hostname to generate the certificate for.
Following multiple hostnames will be used as DNS aliases in the
same certificate.
add-or-renew FQDN [.. FQDN-N]
This param is for automation tools like Ansible or Puppet.
It checks if the certificate for first (*) FQDN exists.
If not: add a new cert (see "add").
If so: call renew action (see "renew")
(*) it doesn't verify the DNS aliases
delete FQDN
delete a given certificate
...
...
@@ -57,5 +65,4 @@ ACTIONs for all certs
list
list all certificates including creation and renew date
```
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