It's all about the answers!

Ask a question

Buildforge JAVA API with SSL


hagai izenberg (2611) | asked Mar 04 '10, 5:01 a.m.
Hi,
I'm using the Java API to run a project in buildforge and having problems connection with SSL.
when working without SSL, this connection code works great:

APIClientConnection conn = new APIClientConnection ("server");



it also works great when i use the default port:
APIClientConnection conn = new APIClientConnection ("server",3966);


when trying to work with the SSL port, and initializing SSL like this:

System.setProperty("javax.net.ssl.keyStore", "c:\\buildForgeKeyStore.p12");

System.setProperty("javax.net.ssl.keyStorePassword", "111111");
System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");
System.setProperty("javax.net.ssl.trustStore", "c:\\buildForgeTrustStore.p12");
System.setProperty("javax.net.ssl.trustStorePassword", "111111");
System.setProperty("javax.net.ssl.trustStoreType", "PKCS12");

APIClientConnection conn = new APIClientConnection ("server",49150);


i'm getting this exception:

Exception in thread "main" java.io.IOException: Unexpected EOF

at com.buildforge.services.client.api.APIClientBuffer.fill(APIClientBuffer.java:121)
at com.buildforge.services.client.api.APIClientConnection.call(APIClientConnection.java:584)
at com.buildforge.services.client.api.APIClientConnection.setVersion(APIClientConnection.java:929)
at com.buildforge.services.client.api.APIClientConnection.<init>(APIClientConnection.java:262)
at com.buildforge.services.client.api.APIClientConnection.<init>(APIClientConnection.java:248)
at com.buildforge.services.client.api.APIClientConnection.<init>(APIClientConnection.java:240)
at com.buildforge.services.client.api.APIClientConnection.<init>(APIClientConnection.java:332)
at com.buildforge.services.client.api.APIClientConnection.<init>(APIClientConnection.java:310)
at il.co.bll.techinfra.bf.buildForge.main(buildForge.java:36)


i've also tried obtaining SSL certificate from the browser (working with the admin-console), i've also tried using invalid password or files but i'm always getting the same error,
is there a way to set the connection more to SSL?

Thanks.

11 answers



permanent link
Peter Birk (501145) | answered May 20 '10, 10:19 a.m.
JAZZ DEVELOPER
What you're saying is that I can only change the port number or is there a way to disable it?


Sorry, thought you just wanted to change the port #. To disable the port, set it to 0 in web.xml as explained above.

Regards,
Pete

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.