how to remove KeyStore security prompt

女生的网名这么多〃 提交于 2019-12-11 23:57:49

问题


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?


回答1:


You can avoid this by making your device find the root certificate. There is a problem with godaddy certificate where the BlackBerry can't find the root.

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

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

Here is an example of solution, with the same kind of problem but on another platform.

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



来源:https://stackoverflow.com/questions/3510499/how-to-remove-keystore-security-prompt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!