Skip to content

Secure Web Socket client and FQDN #487

Answered by sipsorcery
AKumkov asked this question in Q&A
Discussion options

You must be logged in to vote

I extended SIPEndpoint class with a hostname property that is used to establish a connection and it worked out.
Is there a better way to do it?

Yes, a better approach would be to use the SIPClientWebSocketChannel.SendSecureAsync method that takes the common name of the web socket server certificate. The problem is that method doesn't currently pass the server certificate name through. I've created #488 to fix it. I'll ping you from that issue when it's ready to test.

The second problem is specific to Xamarin.Android. "System.Net.WebSockets.ClientWebSocket" class ignores Network Security Configuration and does not trust self-signed certificates.

I don't know enough about Android/Xamari…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AKumkov
Comment options

Answer selected by AKumkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants