Some bizarre results on calculations for Certificate validity in EJBCA 7.9.0.2 #109
-
I'm trying to create a Root CA where the certificate never expires (Validity until 12/31/9999 23:59:59 UTC). (Lets not get into the why, - this is a business requirement). When testing this with software only, on multiple times with the same underlying components (OS-Database-AppServer-EJBCA), there has been no problem - see example below.
However, when using the HSM, EJBCA is unable to create such a certificate, Admin GUI shows me this error message:
From Wildfly log files, even though I see a PEM file, OpenSSL fails to display the contents when it reaches the certificate end-date. I've had to use ASN1 parsing to print the content below.
The log messages seem to indicate this "work-in-progress" certificate has expired:
and the log-entry :
As you can see, that is the date in the ASN1 parsed output. According to some websites, the value there should have been some value around 253402329599. What is causing this? I've asked the HSM company the same question (waiting for their response), but I suspect this is being calculated within EJBCA. But, why now/suddenly when the same versions without the HSM did not produce this problem more than a few times before? And, strangely, I get the same error now if I try to create the certificate using a Soft token after the error surfaces the first time when trying to use the HSM. Restarting Wildfly, MariaDB - or even the computer - cannot generate a CA certificate for that identifier or DN for 30Y or 100Y durations. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is a specific standard for unlimited validity. It's documented here: https://doc.primekey.com/ejbca/ejbca-operations/ejbca-ca-concept-guide/certificate-profiles-overview/certificate-profile-fields#CertificateProfileFields-UndefinedValidity |
Beta Was this translation helpful? Give feedback.
There is a specific standard for unlimited validity. It's documented here: https://doc.primekey.com/ejbca/ejbca-operations/ejbca-ca-concept-guide/certificate-profiles-overview/certificate-profile-fields#CertificateProfileFields-UndefinedValidity