Good morning.
My problem is, I want to create a HttpsURLConnection
that accepts default trusted certificates but also my self-signed certificated.
After looking around in Internet, I found a lot of similar questions, but not exactly what I want.
In particular, a good code is here.
This is pretty much what I want, but with a difference: They will trust ONLY the self-signed certificates, I want to trust ALSO the self-signed certificates.
Basically I don't want to start from an empty KeyStore
, I would like to get the default keystore, whatever/wherever it is, something that already contains the default certificates in my OS.
PS: I am working in Android.
Thanks to everyone