java.security.cert.CertificateException: Could not find trusted certificate
I am having a cer file of webservice say https://domainname/
I have created keystore using this cer file by executing
keytool -iomport -alias <aliasname> -file <certificate_filename> -keystore <keystore_filename>
Thereafter,I have created the servlet to get the connection to webservice URL.The code is
System.setProperty"java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
System.setProperty("javax.net.ssl.trustStore", "keystore_filename");
System.setProperty"javax.net.ssl.trustStorePassword","keystore_password");
Thereafter I tries to execute the webservice menthod by calling the https URL.But I get the error--
{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Could not find trusted certificate
I am using Apache Axis to connect to webservice.
Please help me to resove this problem.Quick help will be appreciated.

