cancel
Showing results for 
Search instead for 
Did you mean: 

BLS in MII Version 11.5 - HTML Loader with a HTTPS URL ASP Page

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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"...

jcgood25
Active Contributor
0 Kudos

Tell Roger it's time to get rid of all that ASP stuff up there in Allentown...

Former Member
0 Kudos

This is a problem with reading from another web sites's ASP Pages.

Former Member
0 Kudos

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.

Former Member
0 Kudos

ok, so now where will bls look for the keystore file/info ???default user???

jamie_cawley
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Hi, Dennis. The certs/keystore are part of the JDK, not tied to any specific user.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Dennis,

This might be a networking problem.For this you need to disable the certificate validation.

Thanks

Suresh