Hi! WebSocket lib is greate, but it's impossible to verify hostname after handshake for secure connection to do check as proposed here https://developer.android.com/training/articles/security-ssl.html#CommonHostnameProbs As a result it's a lack in security and library cant be used in production code. How this problem could be solved?
Activity
marci4 commentedon Apr 12, 2017
Hello @biaxident,
as I understand your example correctly, you just need a SSLSocket to verify the hostname.
Gonna possible add a getter for this in the new version.
Greetings
marci4
biaxident commentedon Apr 12, 2017
Hello, @marci4 . Thank you for so fast reply! Look forward for such feature!
marci4 commentedon Apr 13, 2017
Hello @biaxident,
I merged a change to this repository just now.
Could you please check if this is sufficient for your needs?
Greetings
marci4
marci4 commentedon Apr 19, 2017
Example code for echo.websocket.org
marci4 commentedon Apr 19, 2017
Example also added to the wiki. https://github.com/TooTallNate/Java-WebSocket/wiki/Verify-hostname-after-handshake