TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

websocket with customized certificate #161

Closed westchennnUVa closed 6 years ago

westchennnUVa commented 6 years ago

Hi, I was wondering if there is one way to bind my own certificate when I created a secure socket connection(wss).

Thanks in advance!

TakahikoKawasaki commented 6 years ago

Probably, creating an SSLContext instance and setting it to WebSocketFactory by setSSLContext() will work. See https://stackoverflow.com/a/3734974/1174054

westchennnUVa commented 6 years ago

Thank you for your quick response!! I'll look at it. Maybe I'll reach out to you if there is something wrong. I'll close this issue if everything goes well!

Thank you for your help!