New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
39 0 4 10

Connect error for session1:com.neovisionaries.ws.client.HostnameUnverifiedException: The certificate of the peer does not match the expected hostname (us-east-1-aws-3-sm.optimized-pricing-api.refinitiv.net)

Hello,


I was connecting to Cloud RTO 2 using Java. Yesterday afternoon, despite not changing anything related to the connection and being told by the network staff that nothing was modified, I started encountering the following error.


javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


I downloaded the certificate from `api.refinit.com:443` using OpenSSL. After adding this certificate to the Java `cacerts`, I am now getting this error. I wonder where the problem lies. Why was I able to send requests of type "ric" and receive values until yesterday afternoon without any issues, but now I am getting an error?


Connect error for session1:com.neovisionaries.ws.client.HostnameUnverifiedException: The certificate of the peer does not match the expected hostname (us-east-1-aws-3-sm.optimized-pricing-api.refinitiv.net)


Thank you in advance for your assistance.

#technologywebsocketsjavarrtocloud
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvote
39 0 4 10
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.