From 55bdd0264d3c05790cba1c5bb2e12892124ec0bf Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Mon, 9 May 2022 16:00:06 +0100 Subject: [PATCH] Use correct input format for 'start_fix_sec' on Darwin and *BSD Signed-off-by: Richard T Bonhomme --- .github/workflows/action.yml | 1 + easyrsa3/easyrsa | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 05323eb..b6549bf 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -72,6 +72,7 @@ jobs: env: EASYRSA_REMOTE_CI: 1 + # Limit run to RSA and EC only, Libre does not do ED LIBRESSL_LIMIT: 1 #EASYRSA_WIN: 1 TERM: xterm-256color diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 8fe9332..90f0e90 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1652,7 +1652,7 @@ Non-decimal value for EASYRSA_FIX_OFFSET: '$EASYRSA_FIX_OFFSET'" allow_renew_date="$(( now_sec + EASYRSA_CERT_RENEW * 86400 ))" if [ "$EASYRSA_FIX_OFFSET" ]; then - start_fix_sec="$(date -j "${this_year}01010000.00" +%s)" + start_fix_sec="$(date -j "01010000${this_year}.00" +%s)" end_fix_sec="$(( start_fix_sec + fix_days * 86400 ))" # Convert to date-stamps for SSL input start_fixdate="$(date -j -r "$start_fix_sec" +%Y%m%d%H%M%SZ)"