Skip to content

Remove incorrect certificate warning#149

Open
Jonty wants to merge 2 commits intomattermost:masterfrom
Jonty:incorrect_ssl_error
Open

Remove incorrect certificate warning#149
Jonty wants to merge 2 commits intomattermost:masterfrom
Jonty:incorrect_ssl_error

Conversation

@Jonty
Copy link
Copy Markdown

@Jonty Jonty commented Sep 12, 2025

Summary

javax.net.ssl.SSLHandshakeException can be thrown for a variety of reasons unrelated to the certificate being invalid - most notably socket errors while trying to negotiate the TLS session. This can result in spurious warnings about the remote host serving an invalid certificate when a connection is closed remotely, and can easily be triggered by a network change.

Given the certificate is validated elsewhere we can trust that users will be warned appropriately so removing this unnecessary warning path is the cleanest fix - handling all relevant sub-errors would be very ugly.

javax.net.ssl.SSLHandshakeException can be thrown for a variety of
reasons that are not related to the certificate being invalid, most
notably socket errors while trying to negotate the TLS session. This can
result in spurious warnings about the remote host serving an invalid
certificate when a connection is closed, and can easily be triggered by
a network change.
@Jonty
Copy link
Copy Markdown
Author

Jonty commented Dec 17, 2025

Would it be possible for someone to take a look at this? The issue still occurs sporadically and I've heard nothing in response since signing the CLA.

@mattermost-build
Copy link
Copy Markdown

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants