From 14a65fa42d81217ff0795a8b5b8f2a89b18bbf54 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Mon, 4 Apr 2022 17:55:37 +0200 Subject: [PATCH] Change SUFFIX to use human readable date instead of epoch --- shellpki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shellpki b/shellpki index fe28f17..14b9b46 100755 --- a/shellpki +++ b/shellpki @@ -1020,7 +1020,7 @@ main() { fi OPENSSL_BIN=$(command -v openssl) - SUFFIX=$(/bin/date +"%s") + SUFFIX=$(TZ=:Zulu /bin/date +"%Y%m%d%H%M%SZ") if ! is_user "${PKI_USER}" || ! is_group "${PKI_USER}"; then error "You must create ${PKI_USER} user and group !"