[Issue 9266] Replace custom hostname and IP address verification with OpenSSL API