Android Question Installing SelfSigned Certificate

ernschd

Active Member
Licensed User
Longtime User
Hi,

i try to connect to our non-public FTP-Server with SSL.

First question: is it possible to add a self-signed certificate to the certificate-list by my own app?

Second:
Because the certificate is self-signed, i get the exception:
(CertPathValidatorException) java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

After a research i found this entry.

How can create the trust manager for the cerificate? With reflection?
B4X:
Dim r As Reflector
Dim tm As Object
tm = r.CreateObject("javax.net.ssl.TrustManager")

An then?

Thanks.
 

ernschd

Active Member
Licensed User
Longtime User
Hmm, i think that's too complicated for our customers. I'll have to find another way.
Thank you anyway.
 
Upvote 0
Top