Android Question B4A SSL Handshake Error

bitben

Member
Licensed User
Hello,
yes i know there are many threads about this, but i have found no solution to my - i think - special problem.

I need to connect to this url: https://ssfbln.dyndns.org:444/mb/index.asp
There is no need to install an sec. certificate, i can load it and login in chrome without certificate.

Code is simple:
B4X:
Dim check as HttpJob
check.Initialize("start", Me)
check.Download("https://ssfbln.dyndns.org:444/mb/index.asp")
later i added:
B4X:
check.GetRequest.SetHeader("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
check.GetRequest.SetContentEncoding("gzip, deflate, br")
check.GetRequest.SetHeader("Acept-Language","de,en-US;q=0.7,en;q=0.3")
check.GetRequest.SetHeader("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0")
From my mobile phone i get an ssl handshake error, but from windows emulator BlueStacks or Andy are no errors, all works fine there like it should.
I tried it with HttpUtils2Service and changed
hc.Initialize("hc")
to
hc.InitializeAcceptAll("hc")
but nothing, same in webview, it is blank, but when i load https://www.google.com with both methods it worked.

Same with WebSocket, not working, both give error connection closed by peer, but with google worked.

Are there some changes i have to do in phone settings or somewhere else?

Please help
 

MarkusR

Well-Known Member
Licensed User
firefox said this
ssfbln.dyndns.org:444 uses an invalid security certificate. The certificate is not trusted because the issuer certificate is unknown. The server might not be sending the appropriate intermediate certificates. An additional root certificate may need to be imported. Error code: SEC_ERROR_UNKNOWN_ISSUER
 

bitben

Member
Licensed User
I know these things, i talked to an Admin and he said they will fix whole login system and maybe then it should work.. i have to wait for that. Thanks for help
 
Top