We are using mTLS for our backend services authentication and the root certificate is set to expire in 2022. Here are the expiration details for all certificates:
- The root certificate will expire in 2022
- The intermediate certificates will expire in 2031
- The leaf certificates will expire in 2023
I do not know why the root certificate was set to expire before all the others and I would like to avoid updating all the certificates in a few months if it is possible. Based on our tests, everything will still work after the root certificate expiration as long as the intermediate and the leaf certificates are still valid. We did the following tests to validate:
- We updated the certificates in a test environment and set the root certificate to expire in one hour
- Everything was working normally after one hour
- We did another test with the intermediate certificates, making them expire in one hour
- After one hour we started receiving authentication errors
Could someone confirm if our tests are sufficient to validate that the root certificate expiration shouldn't cause problems?
Thanks for any insight you can provide!
### Additional Information ###
We use mTLS authentication between our internal services:
- Hashicorp Consul, Nomad and Vault
- MongoDB
- A few other services
On these instances, we can find the intermediate and leaf certificates but not the root.
If I validate the intermediate certificate, I can see that its expiration is in 1 year even though the root certificate has already expired.
I tested these certificates using Terraform to create 3 Consul servers in a new environment. The test certificates have been installed on each instance and the root certificate expiration is not causing any issues