Change SUFFIX to use human readable date instead of epoch

This commit is contained in:
Jérémy Dubois 2022-04-04 17:55:37 +02:00
parent c76b7a02ca
commit 14a65fa42d

View file

@ -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 !"