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
1dcdb097
Commit
1dcdb097
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
faster check if certificate exists
parent
1bc2eb23
No related branches found
No related tags found
1 merge request
!23
faster check if certificate exists
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cm.sh
+3
-2
3 additions, 2 deletions
cm.sh
with
3 additions
and
2 deletions
cm.sh
+
3
−
2
View file @
1dcdb097
...
...
@@ -102,7 +102,8 @@ function _listCertdomains(){
# used in _certMustExist, _certMustNotExist
# param string FQDN
function
_certExists
(){
_listCertdomains |
grep
"^
${
CM_fqdn
}
$"
>
/dev/null
# _listCertdomains | grep "^${CM_fqdn}$" >/dev/null
$ACME
--info
-d
"
${
CM_fqdn
}
"
2>/dev/null |
grep
"letsencrypt.org"
>
/dev/null
}
# internal function; a certificate of a given FQDN must exist - otherwise
...
...
@@ -284,7 +285,7 @@ function _getAliases(){
_sortWords
$(
openssl x509
-noout
-text
-in
${
CM_outfile_cert
}
\
|
grep
-E
"(DNS:)"
\
|
sed
"s#^
\
*##g"
\
|
sed
"s#^ *##g"
\
|
sed
"s#DNS:##g"
\
|
sed
"s#,##g"
)
...
...
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