I am trying to develop an application that tries to call the https (godaddy ssl) url. I have successfully installed the certificate in the keystore using this code.
public void addCertToDeviceKeyStore(Certificate certificate) {
KeyStore keyStore = DeviceKeyStore.getInstance();
if (!keyStore.isMember(certificate)) {
try {
String SFN = certificate.getSubjectFriendlyName();
CertificateStatus CS = certificate.getStatus();
keyStore.set(null, SFN, certificate, CS, keyStore.getTicket());
} catch (Exception e) {
}
}
}
after adding the certificate also why do I get a security request for the keystore password and for trust in the connection?
Is there a way to avoid these security requests?
source
share