kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.62k stars 2.37k forks source link

Error when trying to renew client certificate #736

Open apantsiop opened 1 year ago

apantsiop commented 1 year ago

When I try to renew a client certificate with:

easyrsa renew <some certificate>

I get:

...
Type the word 'yes' to continue, or any other input to abort.
  Continue with renew: yes
date: invalid date 'Jan 30 13:54:36 2023 GMT'
date: invalid date '+30day'
sh: out of range

Easy-RSA error:

Certificate expires in more than 30 days.
Renewal not allowed.
mike-pt commented 1 year ago

This is probably related to https://github.com/OpenVPN/easy-rsa/issues/543

EDIT:

I suggest you download the latest version form the repo to the docker image (maybe in a temp dir) unpack it and call the binary just downloaded

I have tested this my self and it works fine with this docker image.

Ofc the ideal fix would be for the docker image to update the easyrsa binary it ship swith