TLS certificate with validity of decades results in an exception when querying /api/health/checks/certificate-expiration/1/months
#12464
Labels
/api/health/checks/certificate-expiration/1/months
#12464
Describe the bug
We are using RabbitMQ 3.12.12.
Because of reasons (tm) we have a TLS certificate with an extremely long validity (and also signed by a CA that has that same validity period), namely:
When you now query the health check API for certificate expiration, you receive a HTTP 500 response, without any content.
In the logs of RabbitMQ, this crash / traceback is printed:
Reproduction steps
I am not entirely sure if this is caused by the CA validity or the certificate validity.
I have however generated an example CA certificate and an example certificate + key:
`ca.crt`
`server.crt`
`server.key`
rabbitmq.conf
like this:Expected behavior
Not triggering a HTTP 500 and not listing the certificate as being about to expire.
Additional context
No response
The text was updated successfully, but these errors were encountered: