Fix for iOS host name verification failed issue.
If you get the following error when installing the certificates for iOS configurations to WSO2IOT server, please replace " localhost" with your <SERVER_IP> with <IoT_HOME>/repository/deployment/server/synapse-configs/default/api/
[2017-02-02 20:17:21,548] [IoT-Core] ERROR - TargetHandler I/O error: Host name verification failed for host : localhost
javax.net.ssl.SSLException: Host name verification failed for host : localhost
at org.apache.synapse.transport. http.conn. ClientSSLSetupHandler.verify( ClientSSLSetupHandler.java: 171)
at org.apache.http.nio.reactor. ssl.SSLIOSession.doHandshake( SSLIOSession.java:308)
at org.apache.http.nio.reactor. ssl.SSLIOSession. isAppInputReady(SSLIOSession. java:410)
at org.apache.http.impl.nio. reactor.AbstractIODispatch. inputReady(AbstractIODispatch. java:119)
at org.apache.http.impl.nio. reactor.BaseIOReactor. readable(BaseIOReactor.java: 159)
at org.apache.http.impl.nio. reactor.AbstractIOReactor. processEvent( AbstractIOReactor.java:338)
at org.apache.http.impl.nio. reactor.AbstractIOReactor. processEvents( AbstractIOReactor.java:316)
at org.apache.http.impl.nio. reactor.AbstractIOReactor. execute(AbstractIOReactor. java:277)
at org.apache.http.impl.nio. reactor.BaseIOReactor.execute( BaseIOReactor.java:105)
at org.apache.http.impl.nio. reactor. AbstractMultiworkerIOReactor$ Worker.run( AbstractMultiworkerIOReactor. java:586)
at java.lang.Thread.run(Thread. java:745)
[2017-02-02 20:17:21,561] [IoT-Core] WARN - EndpointContext Endpoint : admin--IOSDeviceManagement_ APIproductionEndpoint_0 with address https://localhost:9443/ios- enrollment/profile will be marked SUSPENDED as it failed
[2017-02-02 20:17:21,562] [IoT-Core] WARN - EndpointContext Suspending endpoint : admin--IOSDeviceManagement_ APIproductionEndpoint_0 with address https://localhost:9443/ios- enrollment/profile - current suspend duration is : 30000ms - Next retry after : Thu Feb 02 20:17:51 IST 2017
Comments
Post a Comment