I've discovered what may be a bug in easyrsa 3.0.  When I try to
create new certificates with build-server-full or build-client-full,
I get these error messages:

        Failed conversion of ``'' using format ``%b %d %T %Y %Z''
        date: illegal time format
        usage: date [-jnRu] [-d dst] [-r seconds] [-t west] ...

My specific invocation was

        ./easyrsa --pki-dir=pki2 build-client-full test1 nopass

This is on a MacOS system (version 10.13.6, but I don't think
that matters).

The error seems to be coming from the line

        expire_date="$(date -j -f '%b %d %T %Y %Z' "$crt_not_after" +%s)"

in the cert_dates function.  But it appears that crt_not_after
has not been set, presumably because cert_dates was called
without an argument.

Despite this error, the certificate seems to be created
successfully.  (It looks like the logic that's failing has to do
with renewals, and might work fine during renewals, and is not
needed during initial certificate creation.)

Thanks,

Steve Summit


_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to