[RTC 6.0.2] connecting to RTC using Client API over SSL via Proxy
Hello All,
We have configured reverse proxy for our CLM environment which has individual client SSL certificate to access the applications(which is working fine for the web client).
now we are writing client programs for some automation in the CCM application using java client api's
We have realized that we are behind a proxy server and we have set the proxy settings as below.
On running the code we are getting an SSL handshake exception:
com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099E An HTTP error occurred when this URL was being accessed: server:443. Error details: Received fatal alert: handshake_failure.
we tried importing the certificate using Standard HTTPS API for java and we were able to ping the ccm application successfully, please find the below code for your reference:
System.out.println(urlConn.getResponseCode());// getting 200 ok response code
We are unable to set this SSL Context into the ITeamRepository Interface. Please Suggest a way for adding this SSL context to the TeamRespository for successful handshake.
Thanks in Advance.
Abhishek Kumar
|
Accepted answer
Set system properties in you code.
ITeamRepository teamRepository = TeamPlatform.getTeamRepositoryService().getTeamRepository(repositoryURI);
teamRepository.setProxy("proxy host name", portNumber, null, null); teamRepository.registerLoginHandler(new LoginHandler(userId,password)); teamRepository.login(null); Above code worked for me, hope this might help you as well. Thanks, Manju S Abhishek Kumar selected this answer as the correct answer
|
One other answer
If you want to force the RTC client to use a particular SSL protocol, use the "-Dcom.ibm.team.repository.transport.client.protocol" property.
|
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.
Comments
Hello,
Did you find a solution to this problem we are also facing the same.
Regards,
Manju S
I am facing this issue as well.
Did anyone find a solution?