I've been creating new certificates with expiry: 43800h
, that's 5 years of validity. However, the "Not Before" and the "Not After" have dates that do not match which the day the certificate was created. It looks calculated using other logic. I don't see an option in the fabric-ca-server-config.yaml
to SET the "not before".
For example, I've created a certificate yesterday (October 18th) and it seems that the "Not Before" "Not After" should be October 18, but it isn't for some reason:
Validity
Not Before: Feb 8 14:19:00 2023 GMT
Not After : Feb 7 14:26:00 2028 GMT
I wish to have the Not Before/Not After dates match, the day I'm in, that is, the moment were the certificate is created.
NOTE: I'm using the fabric node SDK to create the certificates.
Cheers!
I got the answer from the fabric mailing list member David Enyeart: