EConvertError in TIdX509.notBefore and TIdX509.notAfter properties for 4-digit years #523
Labels
Element: SSL/TLS
Issues related to SSL/TLS handling, TIdSSLIOHandlerSocketBase and descendants
Status: Fixed
Issue has been fixed, no further work needed
Type: Bug
Issue is a bug in existing code
If an x509 certificate uses 4-digit years (ie, the
GeneralizedTime
format) in its "Not Before" and/or "Not After" dates, anEConvertError
exception is raised. This is because theUTC_Time_Decode()
function in theIdSSLOpenSSLHeaders
unit only supports 2-digit years (ie, theUTCTime
format). It needs to be updated to handle both formats.The text was updated successfully, but these errors were encountered: