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

Merge branch 'add-http-challenge' into 'master'

show dir in help output

See merge request !26
parents 8e41354b 2a71cfe2
No related branches found
No related tags found
1 merge request!26show dir in help output
...@@ -927,6 +927,9 @@ function public_transfer(){ ...@@ -927,6 +927,9 @@ function public_transfer(){
cd $( dirname $0 ) cd $( dirname $0 )
test -z "${CM_diracme}" && CM_diracme=./certs
test -z "${CM_dircsr}" && CM_dircsr=./csr
cat <<ENDOFHEADER cat <<ENDOFHEADER
$line $line
...@@ -937,7 +940,6 @@ $line ...@@ -937,7 +940,6 @@ $line
ENDOFHEADER ENDOFHEADER
while [[ "$#" -gt 0 ]]; do case $1 in while [[ "$#" -gt 0 ]]; do case $1 in
-a|--alias) -a|--alias)
...@@ -991,8 +993,6 @@ while [[ "$#" -gt 0 ]]; do case $1 in ...@@ -991,8 +993,6 @@ while [[ "$#" -gt 0 ]]; do case $1 in
;; ;;
esac; done esac; done
which openssl >/dev/null || exit 1
. ./inc_config.sh . ./inc_config.sh
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
_we "Loading the config failed." _we "Loading the config failed."
...@@ -1001,12 +1001,11 @@ if [ $? -ne 0 ]; then ...@@ -1001,12 +1001,11 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
which openssl >/dev/null || exit 1
_testUser _testUser
_testStaging _testStaging
test -z "${CM_diracme}" && CM_diracme=./certs
test -z "${CM_dircsr}" && CM_dircsr=./csr
grep "function public_$1" "$( basename "$0" )" >/dev/null grep "function public_$1" "$( basename "$0" )" >/dev/null
if [ $# -gt 0 -a $? -eq 0 ]; then if [ $# -gt 0 -a $? -eq 0 ]; then
# _wd $* # _wd $*
......
...@@ -31,7 +31,7 @@ certificate must be created, renewed or re-created. ...@@ -31,7 +31,7 @@ certificate must be created, renewed or re-created.
SYNTAX: SYNTAX:
dev_cm.sh [OPTIONS] ACTION <FQDN> [<ALIASES>] cm.sh [OPTIONS] ACTION <FQDN> [<ALIASES>]
OPTIONS: OPTIONS:
...@@ -62,7 +62,7 @@ The ACTIONs for SINGLE certificate handlings are: ...@@ -62,7 +62,7 @@ The ACTIONs for SINGLE certificate handlings are:
The first FQDN is a hostname to generate the certificate for. The first FQDN is a hostname to generate the certificate for.
Following multiple hostnames will be used as DNS aliases in the Following multiple hostnames will be used as DNS aliases in the
same certificate. same certificate.
It updates files in It updates files in ./certs
ensure <FQDN> [.. <FQDN-N>] ensure <FQDN> [.. <FQDN-N>]
It ensures that a certificate with given aliases exists and is up to date. It ensures that a certificate with given aliases exists and is up to date.
...@@ -81,7 +81,7 @@ The ACTIONs for SINGLE certificate handlings are: ...@@ -81,7 +81,7 @@ The ACTIONs for SINGLE certificate handlings are:
renew <FQDN> renew <FQDN>
renew (an already added) certificate renew (an already added) certificate
and update files in and update files in ./certs
show <FQDN> show <FQDN>
show place of certificate data and show basic certificate data show place of certificate data and show basic certificate data
...@@ -105,7 +105,7 @@ ACTIONs for ALL certs ...@@ -105,7 +105,7 @@ ACTIONs for ALL certs
renew-all renew-all
renew all certificates (fast mode - without --force) renew all certificates (fast mode - without --force)
and update files in and update files in ./certs
It is useful for a cronjob. It is useful for a cronjob.
other ACTIONs other ACTIONs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment