Layer7 API Management

 View Only
  • 1.  Validate the expiration date of a Certificate

    Posted Nov 16, 2023 10:37 AM

    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?



  • 2.  RE: Validate the expiration date of a Certificate

    Broadcom Employee
    Posted Nov 16, 2023 01:05 PM

    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.




  • 3.  RE: Validate the expiration date of a Certificate

    Posted Nov 17, 2023 07:59 AM

    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




  • 4.  RE: Validate the expiration date of a Certificate

    Broadcom Employee
    Posted Nov 17, 2023 09:58 AM

    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).