I need to use the .pem certificates to access the database but I think I am not doing well. Putting .toString () doesn't seem very correct.
I currently have the certificates in the "assets" folder.
Do I have to convert the .PEM certificates to another type of certificates with another extension?
props.setProperty("sslrootcert",mContext.getAssets().open("ca-cert.pem").toString());
props.setProperty("sslkey",mContext.getAssets().open("client-key.pem").toString());
props.setProperty("sslcert",mContext.getAssets().open("client-cert.pem").toString());