<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Server certificate verification failed, mismatch. in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Server-certificate-verification-failed-mismatch/m-p/99609#M20241</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you might be specifying the IP address of the Data ONTAP server instead of hostname in &amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;na_server_open(hostname, ..) &lt;/EM&gt;&lt;/STRONG&gt;core API.&lt;/P&gt;&lt;P&gt;For hostname verification, you should always specify the same hostname that is present in the CN field in the certificate to &lt;STRONG&gt;&lt;EM&gt;na_server_open(hostname, ..) &lt;/EM&gt;&lt;/STRONG&gt;API. Could you please try this.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2015 06:14:54 GMT</pubDate>
    <dc:creator>rkiran</dc:creator>
    <dc:date>2015-01-22T06:14:54Z</dc:date>
    <item>
      <title>Server certificate verification failed, mismatch.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Server-certificate-verification-failed-mismatch/m-p/99032#M20121</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are&amp;nbsp;setting the server certificate using API ‘na_server_set_ca_certs’ and client certificate using API ‘na_server_set_client_cert_and_key’.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Server certificate is copied from NetApp storage device and pasted in a ‘.cert’ file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Client certificated is self-signed created and installed on cluster as client-ca certificate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hostname verification is enabled by-default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But using all this Server certificate verification failed, giving following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Server certificate verification failed: Server certificate name (CN=xxxxxxxxx), hostname (xx.xxx.xx.x) mismatch.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, when we disable hostname verification using API ‘na_server_set_hostname_verification’ then error resolved and server certificate verification succeeded.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I need to do for successful hostname verification?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in anticipation.&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:19:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Server-certificate-verification-failed-mismatch/m-p/99032#M20121</guid>
      <dc:creator>ANSHUL_JAISWAL</dc:creator>
      <dc:date>2025-06-05T05:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Server certificate verification failed, mismatch.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Server-certificate-verification-failed-mismatch/m-p/99609#M20241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you might be specifying the IP address of the Data ONTAP server instead of hostname in &amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;na_server_open(hostname, ..) &lt;/EM&gt;&lt;/STRONG&gt;core API.&lt;/P&gt;&lt;P&gt;For hostname verification, you should always specify the same hostname that is present in the CN field in the certificate to &lt;STRONG&gt;&lt;EM&gt;na_server_open(hostname, ..) &lt;/EM&gt;&lt;/STRONG&gt;API. Could you please try this.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 06:14:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Server-certificate-verification-failed-mismatch/m-p/99609#M20241</guid>
      <dc:creator>rkiran</dc:creator>
      <dc:date>2015-01-22T06:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Server certificate verification failed, mismatch.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Server-certificate-verification-failed-mismatch/m-p/99978#M20316</link>
      <description>&lt;P&gt;Thank you very much &lt;A href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9557" target="_blank"&gt;rkiran&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution specified by you worked for me, hostname verification for server certificate authentication is success after having common name in certificate same as hostname.&lt;/P&gt;&lt;P&gt;Also it worked if I use IP instead of hostname and specify common name as IP in SSL certificate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 07:00:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Server-certificate-verification-failed-mismatch/m-p/99978#M20316</guid>
      <dc:creator>ANSHUL_JAISWAL</dc:creator>
      <dc:date>2015-01-30T07:00:54Z</dc:date>
    </item>
  </channel>
</rss>

