It's all about the answers!

Ask a question

rhapsody design manager 6.0 : Hostname in certificate didn't match:


Naveen Tyagi (19778152) | asked Jul 23 '15, 12:56 a.m.
 I am trying to create connection with Rhapsody Design Manager  through java code but after running java code, it throws following exception when try to login RDM server: 

DM Client Exception: com.ibm.rational.rdm.sdk.DmClientException: com.ibm.xtools.rmpx.oauth.OAuthCommunicatorException: javax.net.ssl.SSLException: hostname in certificate didn't match.

Can anybody tell how to sort this issue? your help would greatly appreciated.  

Accepted answer


permanent link
Ralph Schoon (63.4k33646) | answered Jul 23 '15, 4:19 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jul 23 '15, 4:21 a.m.
The certificate that ships out of the box with the product is a generic one that is for localhost. You have to create your own self signed certificate or a real certificate, otherwise you get problems: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.jazz.install.doc/topics/t_install_server_certificates.html&scope=null

There might be something in the API to ignore certificate errors. I don't know.
Naveen Tyagi selected this answer as the correct answer

2 other answers



permanent link
Vikash Singh (423065) | answered Jul 23 '15, 4:55 a.m.
Hi Ralph,
I am also facing same issue while connecting DM server using DM client sdk. I have tomcat server fr hosting DM application.
How to create own singed certificate for tomcat server and where to upload the new certificate by changing localhost to proper server url (https://servernem.domainname:9443/dm)

Any help would be appreciate

Comments
1
Ralph Schoon commented Jul 23 '15, 5:00 a.m. | edited Jul 23 '15, 5:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER


The yellow section is called a link. Click on the link in my answer above.




1
Francois-xavier Panaget commented Jul 28 '15, 4:29 a.m.

Hi Vikas,
Did you resolve the error?
At which point are you now?
If you still have problems, please give us further information on your environment (application server:  Tomcat or WAS (version?), OS, etc...).
Thanks
François


Naveen Tyagi commented Jul 28 '15, 4:42 a.m.

Hi Francois,

We have created our own self signed certificate and It working fine now. Thanks.


permanent link
David Hirsch (1162) | answered Nov 29 '16, 5:51 a.m.
JAZZ DEVELOPER
When using the recommended http apache jar, you won't get the ceritificate issue.
See https://jazz.net/wiki/bin/view/Main/DMSdkDevelopmentEnvironment6

If you use other versions you need to create a valid (self signed) certificate.


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.