We are trying to establish a secured connection with cluster mode NetApp storage device using communication style as ‘NA_STYLE_CERTIFICATE’ and transport type as ‘NA_SERVER_TRANSPORT_HTTPS’, port = 443.
We are setting the server certificate using API ‘na_server_set_ca_certs’ and client certificate using API ‘na_server_set_client_cert_and_key’.
Server certificate is copied from NetApp storage device and pasted in a ‘.cert’ file.
Client certificated is self-signed created and installed on cluster as client-ca certificate.
Hostname verification is enabled by-default.
But using all this Server certificate verification failed, giving following error:
Server certificate verification failed: Server certificate name (CN=xxxxxxxxx), hostname (xx.xxx.xx.x) mismatch.
Now, when we disable hostname verification using API ‘na_server_set_hostname_verification’ then error resolved and server certificate verification succeeded.
What I need to do for successful hostname verification?