-
Hello, I cannot extract the list of certificates expiration dates with HeidiSQL. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi I have the same wish. Someone could tell me how I can read from the DB the expiration date? BR |
Beta Was this translation helpful? Give feedback.
-
The expiry date is not stored explicitly in the database. You need to extract the certificate and pipe it through openssl.
Alternatively you could use the XCA commandline to export the certificate information in an index file:
The index is used and specified by OpenSSL and documented here. It contains among others the serial, subject and expiry date. |
Beta Was this translation helpful? Give feedback.
-
So this works amazingly, but... on Windows there is always a dialog box that pops up and informs me the export was successful and expects me to click "OK". Even with the "--no-gui" option in use. Is there some way to make this quiet or pass the success message on the console? |
Beta Was this translation helpful? Give feedback.
The expiry date is not stored explicitly in the database. You need to extract the certificate and pipe it through openssl.
Alternatively you could use the XCA commandline to export the certificate information in an index file:
The index is used and specified by OpenSSL and documented here. It contains among others the serial, subject and expiry date.