i am trying to develop an app which tries to call a https(godaddy ssl) url. i have successfully installed certificate in key store using this code.
public void addCertToDeviceKeyStore(Certificate certificate) {
KeyStore keyStore = DeviceKeyStore.getInstance();
// check if certificate is not already in the DeviceKeyStore
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 certificate also why i am getting security prompt for keystore password and for trusting the connection?
is there any way to avoid these security prompts?