Use SocketFactoryCreator2 instead, which handles hostname verification in a safer way.
Hostname verification provided in this class requires manual wiring and in certain server configuration may cause connection errors.
This method is not planned for removal but it is marked as deprecated as it is highly unreliable
and you should update your code not to use openssl style DNs at all
This method is not planned for removal but it is marked as deprecated as it is highly unreliable
and you should update your code not to use openssl style DNs at all