In my case I suddenly got this error because my server reached configured timeout (in days) set in EASYRSA_CERT_EXPIRE within vars file.
EASYRSA_CERT_EXPIRE
vars
I had to create a brand new pki.