I need via API to monitor if certificate is invalid and I found this
But not sure how to use it as it’s too complicated, I just need init a api call like get etc and get the time which the cert should be expired.
Any idea ?
any example will be much appreciated
I would recommend to expose the cert expiration date or days until expiration as a metric. It is common to have a service e.g. Prometheus to scrape metrics from all apps and you can visualize or setup alerts when a certificate is about to expire.