on 06-30-2009 6:58 PM
Greetings All,
In my Business Logic, I have a need to scrape some information off of a Https Webpage but my HTML Loader is getting the following error:
[ERROR]: HTMLLoader [https://midstream.epplp.com/standard/login.asp] : sun.security.validator.ValidatorException: No trusted certificate found
Any idea how I can correct this issue.
I'll eventually have to HTTP Post back to sign in and navigate the site but that also gives the same error...
Thanks
What a pain... I had to put the ssl key in about 3 places and then restart the xmii servlet before it would finally "take"...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dennis, you may need to install the remote site or trusting authority's certificate in your Java keystore. Google "SSL Java Keystore Certificate" and you'll get the info you need on how to set it up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BLS will need the certificate to exist in the cacerts file of the jdk of the mii server.
which for me is located in
\Program Files\Java\jdk1.5.0_14\jre\lib\security
You need to import the certificate using the java keytool. See
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/keytool.html
but first you will need to get the certficate.
Jamie
Hi Dennis,
You have to set these properties:
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
System.setProperty("javax.net.ssl.trustStore","C:/client.keystore");
And then download the certificate and save it in X.509 format,then with the available utility classes add this certificate.
-Suresh
Jamie listed that I'll need to get the cert file. What's the easiest way to accomplish this??
Do I need the Cert for my mii server or for the site I'm trying to reach or both???
I received documentation call "How to configure xmii11.5.1 Build 63 and iis 6.0 for https" so I can see generically how to do both...
I also see in the Security Manager there is a Certificates option... any use for that???
Edited by: Dennis West on Jul 8, 2009 3:47 PM
Dennis,
This might be a networking problem.For this you need to disable the certificate validation.
Thanks
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.