-
Notifications
You must be signed in to change notification settings - Fork 375
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
Manual handling SSL Errors (eg. On self signed certificates) #598
Comments
What about electron? Also I want somehow the end user to select whether to accept self-signed certificates or not. Therefore I need some sort of more manual approach (eg.via providing your own connection implementation). |
There are ways to do that now but requires writing custom code. I'm open to having such feature built-in. There are multiple paths where TLS can be used: Of course this feature can only be supported on Node.js. All of them use Not sure what the best approach is but maybe for example passing TLS options and events to any TLS socket created by the xmpp instance. @pc-magas wanna give it a try? |
Sometime during there is a use of self-signed certificates for example:
Therefore I want somehow when my node.js app using the
@xmpp/client
library to be able to handle these situations manually eg. via asking the user whether to accept the certificate or not or logging that the specific situation resulted on a self-signed certificate TLS connection.So In my case I did the following small node.js dummy client:
And using docker I setup an openfire
3.10.3
xmpp server:Even though my openfire version is an outdated one the issue is that somehow I need manually to handle TLS and error generally that happen during connection from client to the server. For now in TLS Self signed certificate case there's no way to manually handle the connection.
The text was updated successfully, but these errors were encountered: