summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-09 10:34:54 +0100
committerErich Eckner <git@eckner.net>2019-12-09 10:34:54 +0100
commit2a2825f004a9f8e17178c8ef65760e27d6c56746 (patch)
treeeff574558fcf80f358077213dd46a76262c6b03d
parent7d9cf67bffaa145ed3d52467001e91fc626e4d5f (diff)
downloadsimple-pki-2a2825f004a9f8e17178c8ef65760e27d6c56746.tar.xz
sign-ca.in: copy *correct* old certificate to server
-rwxr-xr-xsign-ca.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/sign-ca.in b/sign-ca.in
index f383e44..09ba8a2 100755
--- a/sign-ca.in
+++ b/sign-ca.in
@@ -88,7 +88,7 @@ rm \
'#ETCDIR#/simple-pki/ca/signing-ca.csr'
rsync --ignore-missing-args \
- '#ETCDIR#/simple-pki/ca/root-ca.crt'{,.old} \
+ '#ETCDIR#/simple-pki/ca/root-ca'{,.old}'.crt' \
"${remote_host}:${remote_dir}/"
(
@@ -96,7 +96,7 @@ rsync --ignore-missing-args \
find . -maxdepth 1 \
-type f \( \
-name root-ca.crt -o \
- -name root-ca.crt.old \
+ -name root-ca.old.crt \
\) \
-printf '%TY-%Tm-%TdT%TT ' \
-exec sha512sum {} \; \