Hello! I'm with a certificate problem in one of the kafka connections used. Resuming, the Confluent certificates, used in the kafka connections, are renewed around three months, and I'm searching for a solution to automatically update the cert. I've been researching how to use the restman requests to perform the update, but haven't been able to figure out the expiration part, how can I validate if the certificate it is already expired?
If I remember correctly, restman exports the certificate as a base64 encoded string. You would need to use something like openssl to read the certificate (you may need to base64 decode the string from the XML first), to see the certificate details.
Got it! Thanks for the answer!
One more question, this method would also work in a scenario where the certificate it is still valid but it is no longer been utilized by the partner? If the partner has been using a new certificate without the first one expire
My suggestion was just about seeing the contents of a certificate that you migrateout with Restman. What you do with that information is up to you. If the certificate is in APIGW and you are able to migrateout with restman, you should be able to read it as described (assuming it's not encrypted).