See X509_CertExpiresOn.
Public Declare Function X509_CertIssuedOn Lib "diCrPKI.dll"
(ByVal strCertFile As String, ByVal strOutput As String,
ByVal nOutChars As Long, ByVal nOptions As Long) As Long
nRet = X509_CertIssuedOn(strCertFile, strOutput, nOutChars, nOptions)
long _stdcall X509_CertIssuedOn(const char *szCertFile, char *szOutput, long nOutChars, long flags);
Long: Returns the number of characters set in strOutput.
If nOutChars is zero it returns the maximum number of characters required (currently 20, but
don't assume that for future releases).
C/C++ users should allocate one extra for the terminating NUL character.
If an error occurs, it returns a negative error code.
See X509_CertExpiresOn.