The SIF® Zone
creating, assimilating, and promoting excellence in SIF® agent development

How to get keystore/cert files for HTTPS?

rated by 0 users
Not Answered This post has 0 verified answers | 2 Replies | 2 Followers

Top 10 Contributor
44 Posts
Points 800
Miriam Fein-Cole posted on 01-05-2010 10:32

I'm testing my pull-mode agent with the SIF Test Harness / Compliance Test.  All works fine with HTTP, so now I'm trying HTTPS.  I don't think I understand what I need in terms of .ks and .cert files.  Do I need both?  I created both and have the following code:

            // Set HTTPS properties
            HttpsProperties https = agent.getDefaultHttpsProperties();
            props.setTransportProtocol("https");
            https.setKeyStore("certs/Agent.ks");
            https.setKeyStorePassword("changeit");
            https.setTrustStore("certs/Server.ks");
            https.setTrustStorePassword("changeit");
            https.setRequireClientAuth(false);

I roughly followed the instructions in the PDF "DevNote #102 – Testing HTTPS with the SIFWorks® Enterprise ZIS", although I'm not actually testing with the SIFWorks ZIS so some things are different.  Should I be getting a certificate from SIFA? I wasn't totally sure what to enter for all the fields when going thru the keytool prompts.  Does it have to match the SIF Harness certificate exactly?

When I run I get the following error:

2010-01-04 14:36:38 ERROR - Error initializing and starting agent - Could not establish a connection to the ZIS (https://COmPliaNcE.SIFInfO.oRg:8455?623064F2F3C111DE9AB7C02D8AF4AF10OC%78B%4441%24w%3A%39%00nGo%88K%cdR0M%f4%84Lz%68iH%3EXCog(%AA%F3-Kgj%44%8169*X%bfadZr%52%3FJ'%BA%2f(1pb%C9n%3B%24M%4cm!%3F%2BuC2VNS.%3f%79%D5%95%d1%69%3bwG'ti%2dH-%4cX~atiO%e4xk.%3A2%8B): javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. RefId: null

Thanks for any clarification anyone can provide!

Miriam

  • | Post Points: 45

All Replies

Top 10 Contributor
21 Posts
Points 305

Am interested to know the resolution!

  • | Post Points: 5
Top 10 Contributor
215 Posts
Points 5,055

Miriam,

I'm glad we had a chance to talk and resolve this at the SIF conference. We need to get better documentation on how to use HTTPS with the SIF Test Harness.

Cheers,

Andrew Elmhorst
Chief Architect
Edustructures 

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright ©2006-2009 sifzone.com
Sponsored by Edustructures
We Connect the Systems that Power Education
 
SIF and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.