diff options
author | Erich Eckner <git@eckner.net> | 2019-08-29 13:14:56 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-08-29 13:14:56 +0200 |
commit | e33c85c0f64dd1c0eb1612c10d2c2fbc66c98bae (patch) | |
tree | ba495bc101e37746ce43a29f0bacf04fad20e72d | |
parent | d4a78863d7b77d43436c3ab4868ac15482fd00f4 (diff) | |
download | simple-pki-e33c85c0f64dd1c0eb1612c10d2c2fbc66c98bae.tar.xz |
sign-request: use the new ca
-rwxr-xr-x | sign-request.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sign-request.in b/sign-request.in index f70c99a..89912b4 100755 --- a/sign-request.in +++ b/sign-request.in @@ -95,7 +95,7 @@ while read -r csr; do rm "${csr_local}" continue fi - openssl req -x509 -key "${key_dir}/${ca_name}.key" -in "${csr_local}" -out "${csr_local%.csr}.crt" -addext 'basicConstraints = critical, CA:false' + openssl req -x509 -key "${key_dir}/${ca_name}.key.new" -in "${csr_local}" -out "${csr_local%.csr}.crt" -addext 'basicConstraints = critical, CA:false' rm "${csr_local}" done |