-
Notifications
You must be signed in to change notification settings - Fork 1
error connecting ssl #13
Comments
Hi there. Indeed the issue is the fact that you use a self signed certificate, something I have not implemented support for unfortunately. Is there any particular reason why you don't use a valid certificate? |
Alternatively, you can always import your CA to the Android trust store which would also solve the problem. That's probably the best option if you can't use a valid trusted certificate. |
Hello, I have the same issue. My CA is in Android user trusted credentials and Habitat throws a handshake exception. I think this is because Nougat+ application do not trust user CAs by default. See here: https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html. If you could add a network-security-config in the next version to allow user CAs by default, it would be greatly appreciated. |
Hello trying out your app. But cannot connect.
when i enter my dnsname for example
somedomain.ddns.net:8085
then check "use HTTPS" (and remove the :443 added to the above)
then submit, i briefly get :
javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException: tr.. (i do not see the rest)
Then i am back to the "Lets get things set up" menu.
When i access using a browser, i can access connect using ssl all right.
I expect the error is about trust, as i created my own certificate authority, intermediate ca and server certs. But again from a browser all is good the subject name is fine, so in the browser i just need to accepts "unknown issuer" and then connect. I GUESS (;-) all needed is a dialogue "are you sure you want to trust this certificate" Y/N.
The text was updated successfully, but these errors were encountered: