I have a b4j websocket server certainly reachable from outside my network (I mean that I don't have problems with ports, firewalls, ...).
I created the keystore as decribed in this tutorial (more precisely as described in wiki.eclipse... linked in that tutorial) and I get that error message:
Trust anchor for certification path not found.
Searching the forum I found SetCustomSSLTrustManager but I don't know how to use it and why I should use it (I can connect my device-b4a project to: wss://b4x.com:51041/smiley/ws).
The server reads correctly the keystore file and the SSL configuration is correctly set.
It is placed in File.DirApp; my app connect to a "sub foder", of course, like: wss://[address]:[port]/xxxxxx, like in the "smiley" example.
Thank you
I created the keystore as decribed in this tutorial (more precisely as described in wiki.eclipse... linked in that tutorial) and I get that error message:
Trust anchor for certification path not found.
Searching the forum I found SetCustomSSLTrustManager but I don't know how to use it and why I should use it (I can connect my device-b4a project to: wss://b4x.com:51041/smiley/ws).
The server reads correctly the keystore file and the SSL configuration is correctly set.
' Note that the SslPort is correct, open and reachable.
Private Sub ConfigureSSL (SslPort As Int)
Private Sub ConfigureSSL (SslPort As Int)
Dim ssl As SslConfiguration
ssl.Initialize
ssl.SetKeyStorePath(File.DirApp, "xxx.keystore")
ssl.KeyStorePassword = "xxx"
ssl.KeyManagerPassword = "xxx"
srvr.SetSslConfiguration(ssl, SslPort)
End Subssl.Initialize
ssl.SetKeyStorePath(File.DirApp, "xxx.keystore")
ssl.KeyStorePassword = "xxx"
ssl.KeyManagerPassword = "xxx"
srvr.SetSslConfiguration(ssl, SslPort)
Thank you
Last edited: