Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EConvertError in TIdX509.notBefore and TIdX509.notAfter properties for 4-digit years #523

Closed
rlebeau opened this issue Feb 11, 2024 · 0 comments
Assignees
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

Comments

@rlebeau
Copy link
Member

rlebeau commented Feb 11, 2024

If an x509 certificate uses 4-digit years (ie, the GeneralizedTime format) in its "Not Before" and/or "Not After" dates, an EConvertError exception is raised. This is because the UTC_Time_Decode() function in the IdSSLOpenSSLHeaders unit only supports 2-digit years (ie, the UTCTime format). It needs to be updated to handle both formats.

@rlebeau rlebeau added Type: Bug Issue is a bug in existing code Element: SSL/TLS Issues related to SSL/TLS handling, TIdSSLIOHandlerSocketBase and descendants Status: Reported Issue has been reported for review labels Feb 11, 2024
@rlebeau rlebeau self-assigned this Feb 11, 2024
@rlebeau rlebeau added Status: Fixed Issue has been fixed, no further work needed and removed Status: Reported Issue has been reported for review labels Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant