Skip to content
Snippets Groups Projects
Commit a3903eed authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'remove-sleep' into 'master'

faster check if certificate exists

See merge request !23
parents b4ff2855 1dcdb097
No related branches found
No related tags found
1 merge request!23faster check if certificate exists
......@@ -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"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment