Commit aaff961b authored by ssrq's avatar ssrq

[type/__easy_rsa_pki] Rename --digest to --default-digest

parent 304a073f
......@@ -40,7 +40,17 @@ fail_parameter_value() {
# }
check_parameter_validity_digest() {
parameter_name='digest'
: "${__type:?}"
case ${__type##*/}
in
(*_pki)
parameter_name='default-digest'
;;
(*)
parameter_name='digest'
;;
esac
if [ -f "${__object:?}/parameter/${parameter_name}" ]
then
supplied_value=$(cat "${__object:?}/parameter/${parameter_name}")
......
......@@ -2,6 +2,7 @@ ca-expire-days EASYRSA_CA_EXPIRE
cert-expire-days EASYRSA_CERT_EXPIRE
cert-renewal-allowed-days EASYRSA_CERT_RENEW
crl-publish-days EASYRSA_CRL_DAYS
default-digest EASYRSA_DIGEST
default-ec-curve EASYRSA_CURVE
default-keysize EASYRSA_KEY_SIZE
default-city EASYRSA_REQ_CITY
......@@ -10,6 +11,5 @@ default-email EASYRSA_REQ_EMAIL
default-org EASYRSA_REQ_ORG
default-ou EASYRSA_REQ_OU
default-province EASYRSA_REQ_PROVINCE
digest EASYRSA_DIGEST
dn-mode EASYRSA_DN
use-algo EASYRSA_ALGO
......@@ -114,9 +114,9 @@ EXAMPLES
# Ensure existence of a PKI in directory /etc/easy-rsa with defaults
__easy_rsa_pki /etc/easy-rsa \
--use-algo rsa \
--default-keysize 119 \
--default-keysize 4096 \
--dn-mode org \
--digest sha512 \
--default-digest sha512 \
--default-country CH \
--default-province SG \
--default-city Werdenberg \
......
......@@ -3,6 +3,7 @@ cert-expire-days
cert-renewal-allowed-days
crl-publish-days
default-ec-curve
default-digest
default-keysize
default-city
default-country
......@@ -10,6 +11,5 @@ default-email
default-org
default-ou
default-province
digest
dn-mode
use-algo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment