How to remove KeyStore Security Request

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();
        // 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 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?

0
source share
1 answer

You can avoid this by forcing your device to find the root certificate. There is a problem with the godaddy certificate where BlackBerry cannot find the root.

You need to edit the .htaccess file to point to the root certificate.

http://help.godaddy.com/topic/742/article/5238

, .

http://blog.boxedice.com/2009/05/11/godaddy-ssl-certificates-and-cannot-verify-identity-on-macsafari/

+1

Source: https://habr.com/ru/post/1761679/


All Articles