<?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: changing the SSL certificate in simulator in Simulator Discussions</title>
    <link>https://community.netapp.com/t5/Simulator-Discussions/changing-the-SSL-certificate-in-simulator/m-p/443359#M2977</link>
    <description>&lt;P&gt;some more details: this is Ontap 9.12.1, &lt;A href="https://github.com/freedge/netappvm/blob/master/install.yaml" target="_blank" rel="noopener"&gt;playbooks&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 11:45:35 GMT</pubDate>
    <dc:creator>frigo</dc:creator>
    <dc:date>2023-04-12T11:45:35Z</dc:date>
    <item>
      <title>changing the SSL certificate in simulator</title>
      <link>https://community.netapp.com/t5/Simulator-Discussions/changing-the-SSL-certificate-in-simulator/m-p/443356#M2976</link>
      <description>&lt;P&gt;Hi! I am ramping up on Ontap automation tooling and am checking how to automate the installation of certificates, starting with a simulator.&lt;/P&gt;&lt;P&gt;I have been able to successfully install a certificate for an object store, leveraging the &lt;A href="https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_security_certificates_module.html#ansible-collections-netapp-ontap-na-ontap-security-certificates-module" target="_blank" rel="noopener"&gt;ansible module&amp;nbsp;&lt;/A&gt;that works great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However there is no way to change the certificate for the web UI (even &lt;A href="https://kb.netapp.com/onprem/ontap/dm/System_Manager/How_to_install_a_Certificate_Authority_CA_signed_certificate_using_ONTAP_CLI" target="_blank" rel="noopener"&gt;by hand&lt;/A&gt;), the original certificate keeps getting used.&lt;/P&gt;&lt;PRE&gt;$ openssl s_client -connect 10.224.123.6:443 | openssl x509 -serial -noout&lt;BR /&gt;Can't use SSL_get_servername&lt;BR /&gt;depth=0 CN = DataONTAP.default.4082368-50-7, C = US&lt;BR /&gt;verify error:num=18:self-signed certificate&lt;BR /&gt;verify return:1&lt;BR /&gt;depth=0 CN = DataONTAP.default.4082368-50-7, C = US&lt;BR /&gt;verify return:1&lt;BR /&gt;serial=17551D832D6A0631&lt;BR /&gt;^C&lt;/PRE&gt;&lt;P&gt;now installing the certificate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;test1::*&amp;gt; security certificate show -serial 17551D832D6A0631&lt;BR /&gt;There are no entries matching your query.&lt;BR /&gt;&lt;BR /&gt;test1::*&amp;gt; security ssl modify -vserver test1 -server-enabled false&lt;BR /&gt;&lt;BR /&gt;test1::*&amp;gt; security ssl modify -vserver test1 -ca testca -serial 498E6EE12BF76EC3BF9E9F3899395552C6C91F3B&lt;BR /&gt;&lt;BR /&gt;test1::*&amp;gt; security ssl modify -vserver test1 -server-enabled true&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still that old one (referenced nowhere) keeps getting used:&lt;/P&gt;&lt;PRE&gt;$ openssl s_client -connect 10.224.123.6:443 | openssl x509 -serial -noout&lt;BR /&gt;Can't use SSL_get_servername&lt;BR /&gt;depth=0 CN = DataONTAP.default.4082368-50-7, C = US&lt;BR /&gt;verify error:num=18:self-signed certificate&lt;BR /&gt;verify return:1&lt;BR /&gt;depth=0 CN = DataONTAP.default.4082368-50-7, C = US&lt;BR /&gt;verify return:1&lt;BR /&gt;serial=17551D832D6A0631&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now hacking a bit we can make it work (for science):&lt;/P&gt;&lt;PRE&gt;test1::*&amp;gt; systemshell &lt;BR /&gt;(system node systemshell)&lt;BR /&gt;diag@127.0.0.1's password: &lt;BR /&gt;&lt;BR /&gt;Warning: The system shell provides access to low-level&lt;BR /&gt;diagnostic tools that can cause irreparable damage to&lt;BR /&gt;the system if not used properly. Use this environment&lt;BR /&gt;only when directed to do so by support personnel.&lt;BR /&gt;&lt;BR /&gt;test1-01% grep VserverSSLConfig /mroot/etc/www/wsdb/httpd-vserver.conf&lt;BR /&gt;VserverSSLConfig 0 /mroot/etc/vserver_4294967295/certificates/ssl/server/00000000-0000-0000-0000-000000000000/server.crt /mroot/etc/vserver_4294967295/certificates/ssl/server/00000000-0000-0000-0000-000000000000/server.key&lt;BR /&gt;VserverSSLConfig 2 /mroot/etc/cluster_config/vserver/.vserver_2/config/etc/certificates/ssl/server/af73667d-d8ff-11ed-9a3e-25390a7bf864/server.crt /mroot/etc/cluster_config/vserver/.vserver_2/config/etc/certificates/ssl/server/af73667d-d8ff-11ed-9a3e-25390a7bf864/server.key&lt;BR /&gt;VserverSSLConfig 4294967295 /mroot/etc/vserver_4294967295/certificates/ssl/server/9eadc669-d8ff-11ed-9a3e-25390a7bf864/server.crt /mroot/etc/vserver_4294967295/certificates/ssl/server/9eadc669-d8ff-11ed-9a3e-25390a7bf864/server.key&lt;BR /&gt;&lt;BR /&gt;test1-01% sudo sed -i -e '/^VserverSSLConfig 0/d' /mroot/etc/www/wsdb/httpd-vserver.conf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# now working&lt;BR /&gt;$ openssl s_client -CAfile ./ca_cert.pem -connect test1.example.test:443 | openssl x509 -serial -noout&lt;BR /&gt;depth=1 CN = testca&lt;BR /&gt;verify return:1&lt;BR /&gt;depth=0 CN = test1&lt;BR /&gt;verify return:1&lt;BR /&gt;serial=498E6EE12BF76EC3BF9E9F3899395552C6C91F3B&lt;BR /&gt;^C&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to change the SSL certificate properly in the simulator? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:50:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Simulator-Discussions/changing-the-SSL-certificate-in-simulator/m-p/443356#M2976</guid>
      <dc:creator>frigo</dc:creator>
      <dc:date>2025-06-04T09:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: changing the SSL certificate in simulator</title>
      <link>https://community.netapp.com/t5/Simulator-Discussions/changing-the-SSL-certificate-in-simulator/m-p/443359#M2977</link>
      <description>&lt;P&gt;some more details: this is Ontap 9.12.1, &lt;A href="https://github.com/freedge/netappvm/blob/master/install.yaml" target="_blank" rel="noopener"&gt;playbooks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 11:45:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Simulator-Discussions/changing-the-SSL-certificate-in-simulator/m-p/443359#M2977</guid>
      <dc:creator>frigo</dc:creator>
      <dc:date>2023-04-12T11:45:35Z</dc:date>
    </item>
  </channel>
</rss>

