Merge branch 'master' of https://github.com/TinCanTech/easy-rsa into TinCanTech-master
This commit is contained in:
commit
80e09e6bdc
@ -383,7 +383,7 @@ verify_ssl_lib () {
|
|||||||
val="$("$EASYRSA_OPENSSL" version)"
|
val="$("$EASYRSA_OPENSSL" version)"
|
||||||
case "${val%% *}" in
|
case "${val%% *}" in
|
||||||
OpenSSL|LibreSSL)
|
OpenSSL|LibreSSL)
|
||||||
notice "\
|
print "\
|
||||||
Using SSL: $EASYRSA_OPENSSL $("$EASYRSA_OPENSSL" version)" ;;
|
Using SSL: $EASYRSA_OPENSSL $("$EASYRSA_OPENSSL" version)" ;;
|
||||||
*) die "\
|
*) die "\
|
||||||
Missing or invalid OpenSSL
|
Missing or invalid OpenSSL
|
||||||
@ -581,9 +581,6 @@ current CA keypair. If you intended to start a new CA, run init-pki first."
|
|||||||
"$EASYRSA_OPENSSL" ec -out "$out_key_tmp" $crypto_opts
|
"$EASYRSA_OPENSSL" ec -out "$out_key_tmp" $crypto_opts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make safessl-easyrsa.cnf
|
|
||||||
make_ssl_config
|
|
||||||
|
|
||||||
# create the CA keypair:
|
# create the CA keypair:
|
||||||
[ ! $nopass ] && crypto_opts="-passin file:$out_key_pass_tmp"
|
[ ! $nopass ] && crypto_opts="-passin file:$out_key_pass_tmp"
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
@ -679,9 +676,6 @@ $EASYRSA_EXTRA_EXTS"
|
|||||||
EASYRSA_SSL_CONF="$EASYRSA_TEMP_CONF"
|
EASYRSA_SSL_CONF="$EASYRSA_TEMP_CONF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make safessl-easyrsa.cnf
|
|
||||||
make_ssl_config
|
|
||||||
|
|
||||||
key_out_tmp="$(mktemp "$key_out.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_2="$key_out_tmp"
|
key_out_tmp="$(mktemp "$key_out.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_2="$key_out_tmp"
|
||||||
req_out_tmp="$(mktemp "$req_out.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_3="$req_out_tmp"
|
req_out_tmp="$(mktemp "$req_out.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_3="$req_out_tmp"
|
||||||
# generate request
|
# generate request
|
||||||
@ -799,9 +793,6 @@ $(display_dn req "$req_in")
|
|||||||
Failed to create temp extension file (bad permissions?) at:
|
Failed to create temp extension file (bad permissions?) at:
|
||||||
$EASYRSA_TEMP_EXT"
|
$EASYRSA_TEMP_EXT"
|
||||||
|
|
||||||
# make safessl-easyrsa.cnf
|
|
||||||
make_ssl_config
|
|
||||||
|
|
||||||
# sign request
|
# sign request
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
crt_out_tmp="$(mktemp "$crt_out.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_2="$crt_out_tmp"
|
crt_out_tmp="$(mktemp "$crt_out.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_2="$crt_out_tmp"
|
||||||
@ -890,9 +881,6 @@ $(display_dn x509 "$crt_in")
|
|||||||
Unable to revoke as no certificate was found. Certificate was expected
|
Unable to revoke as no certificate was found. Certificate was expected
|
||||||
at: $crt_in"
|
at: $crt_in"
|
||||||
|
|
||||||
# make safessl-easyrsa.cnf
|
|
||||||
make_ssl_config
|
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
"$EASYRSA_OPENSSL" ca -utf8 -revoke "$crt_in" -config "$EASYRSA_SAFE_CONF" $opts || die "\
|
"$EASYRSA_OPENSSL" ca -utf8 -revoke "$crt_in" -config "$EASYRSA_SAFE_CONF" $opts || die "\
|
||||||
Failed to revoke certificate: revocation command failed."
|
Failed to revoke certificate: revocation command failed."
|
||||||
@ -1007,9 +995,6 @@ $(display_dn x509 "$crt_in")
|
|||||||
Unable to renew as no certificate was found. Certificate was expected
|
Unable to renew as no certificate was found. Certificate was expected
|
||||||
at: $crt_in"
|
at: $crt_in"
|
||||||
|
|
||||||
# make safessl-easyrsa.cnf
|
|
||||||
make_ssl_config
|
|
||||||
|
|
||||||
# Check if old cert is expired or expires within 30 days
|
# Check if old cert is expired or expires within 30 days
|
||||||
expire_date=$(
|
expire_date=$(
|
||||||
"$EASYRSA_OPENSSL" x509 -in "$crt_in" -noout -enddate |
|
"$EASYRSA_OPENSSL" x509 -in "$crt_in" -noout -enddate |
|
||||||
@ -1149,9 +1134,6 @@ input in file: $req_in"
|
|||||||
gen_crl() {
|
gen_crl() {
|
||||||
verify_ca_init
|
verify_ca_init
|
||||||
|
|
||||||
# make safessl-easyrsa.cnf
|
|
||||||
make_ssl_config
|
|
||||||
|
|
||||||
out_file="$EASYRSA_PKI/crl.pem"
|
out_file="$EASYRSA_PKI/crl.pem"
|
||||||
out_file_tmp="$(mktemp "$out_file.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_2="$out_file_tmp"
|
out_file_tmp="$(mktemp "$out_file.XXXXXXXXXX")"; EASYRSA_TEMP_FILE_2="$out_file_tmp"
|
||||||
"$EASYRSA_OPENSSL" ca -utf8 -gencrl -out "$out_file_tmp" -config "$EASYRSA_SAFE_CONF" || die "\
|
"$EASYRSA_OPENSSL" ca -utf8 -gencrl -out "$out_file_tmp" -config "$EASYRSA_SAFE_CONF" || die "\
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user