From 10f6fb2a42438a6eb589bf7661c74e998dc05817 Mon Sep 17 00:00:00 2001 From: pacija Date: Thu, 19 Nov 2020 17:29:57 +0100 Subject: [PATCH] Fix renew on OpenBSD Change `allow_renew_date` so it doesn't use `-v` flag not present on OpenBSD version of `date` --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 9399b33..a33cdd4 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1181,7 +1181,7 @@ at: $crt_in" case $(uname 2>/dev/null) in "Darwin"|*"BSD") expire_date=$(date -j -f '%b %d %T %Y %Z' "$expire_date" +%s) - allow_renew_date=$(date -j -v"+${EASYRSA_CERT_RENEW}d" +%s) + allow_renew_date=$(($(date -j +%s) + 24*60*60*$EASYRSA_CERT_RENEW)) ;; *) # This works on Windows, too, since uname doesn't exist and this is catch-all