diff options
Diffstat (limited to 'sign-request.in')
-rwxr-xr-x | sign-request.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sign-request.in b/sign-request.in index 0185cf4..331815f 100755 --- a/sign-request.in +++ b/sign-request.in @@ -14,6 +14,8 @@ remove_leading_spaces() { ' } +export CA_TYPE='Intermediate' + if [ -f '#ETCDIR#/simple-pki/ca/root-ca.old.crt' ] \ && [ "$(stat -c%Y '#ETCDIR#/simple-pki/ca/root-ca.old.crt')" -ge "$(($(date +%s)-60*60*24*ca_min_duration))" ]; then export CA=signing-ca.old |