AnsweredAssumed Answered

Not able to connect PI WEBAPI through java application in remote machine

Question asked by MeghaKesharwani on Aug 17, 2016
Latest reply on Sep 20, 2016 by akenyon

I can access the PI WEB API url : https://172.16.86.219/piwebapi/ from my local machine through web browser as well as java application.

 

But when I am trying to access the same url through remote machine, I can acess it through remote’s machine browser but facing issues while remote machine is trying to access the url through java application.

 

I am receiving the following error:

Caused by: java.security.cert.CertificateException: No subject alternative names matching IP address 172.16.86.219 found
at sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:154)
at sun.security.util.HostnameChecker.match(HostnameChecker.java:91)
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:455)
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:436)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:200)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1453)
... 15 more

Outcomes