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

Error message omitted when the certificate is missing or invalid #15612

Closed
hiimmat opened this issue Nov 19, 2024 · 2 comments
Closed

Error message omitted when the certificate is missing or invalid #15612

hiimmat opened this issue Nov 19, 2024 · 2 comments
Assignees
Labels

Comments

@hiimmat
Copy link

hiimmat commented Nov 19, 2024

I did this

I made a HTTP request with SSL verification enabled, but the certificate that I used had expired. The response included the error code SSL_REMOTE_CERTIFICATE_ERROR but did not provide a message.

I expected the following

In earlier versions, the response provided an error message alongside the error code:
SSL certificate problem: unable to get local issuer certificate.

Tracking it down, I discovered that this message was removed in the following pull request:
https://github.com/curl/curl/pull/15474/files#diff-03eaf320162ec20f67fab4e16f494e29735dadfa12425530869d42eea86bd2ccL4282

curl/libcurl version

curl 8.11.0

operating system

Windows 10

@Mwileman232
Copy link

I have also run into this issue yesterday with curl 8.11.0 (working in 8.10.1) and determined the same cause. Error messages like "SSL certificate problem: certificate has expired" and "SSL certificate problem: certificate revoked" are no longer reported in my case.

@icing icing self-assigned this Nov 19, 2024
@icing
Copy link
Contributor

icing commented Nov 19, 2024

Thanks for the report. Indeed the refactoring in 8.11 lost this. I made #15613 to correct it. Hope this works for you.

@vszakats vszakats added the TLS label Nov 19, 2024
@bagder bagder closed this as completed in fd4528a Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants