<?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 Powershell connect-nacontroller results in &amp;quot;Could not create SSL/TLS secure channel&amp;quot; in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Powershell-connect-nacontroller-results-in-quot-Could-not-create-SSL-TLS-secure/m-p/455806#M3290</link>
    <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;New array deployment here. Former NetApp customer returning and looking to manage some aspects of day to day admin via the Netapp.ONTAP powershell modules. I have been unable to get connected and support suggested posting here.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if (Get-Module -ListAvailable -Name NetApp.ONTAP) {
    Write-Host "NetApp Modules are installed..."
} 
else {
    Write-Host "NetApp Module does not exist....installing now...."
    Install-Module -Name NetApp.ONTAP
}

# Variables
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13
$NetAppArray='netapp01.domain.com'
$cred=$(Get-Credential)

# Connect to array
Connect-NaController -Name $NetAppArray -Credential $cred -HTTPS&lt;/LI-CODE&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Error as follows:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Connect-NaController : Connection to netapp01.domain.com using HTTPS failed - The request was aborted: Could not create SSL/TLS secure channel.&lt;BR /&gt;The error may be resolved by generating a new certificate on the storage controller, with a longer key length.&lt;BR /&gt;At O:\Network\Scripts\PowerShell\NetApp.ps1:17 char:1&lt;BR /&gt;+ Connect-NaController -Name $NetAppArray -Credential $cred -HTTPS&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidResult: (netapp01.domain.com:NaController) [Connect-NaController], NaConnectionSSLException&lt;BR /&gt;+ FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Things I have tried:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Verified key length is 2048. I have tried forcing TLS 1.2 and 1.3 from powershell. Tried shortname/FQDN/IP. I have used the built-in self signed cert as well as a purchased digicert wildcard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Some output from the array (run with 'set advanced'):&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;netapp01::*&amp;gt; security certificate show -fields size -type server                    
vserver common-name serial           ca       type   subtype cert-name                 size 
------- ----------- ---------------- -------- ------ ------- ------------------------- ---- 
netapp01 
        netapp01    0C02639083A3E774E2E1B51125F1BB34 
                                     "DigiCert Global G2 TLS RSA SHA256 2020 CA1" 
                                              server -       netapp01_wildcard2025     2048 
netapp01 
        netapp01    17D48425558215B2 netapp01 server -       netapp01_17D48425558215B2 2048 
4 entries were displayed.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;netapp01::*&amp;gt; security config show -fields supported-protocols
interface supported-protocols 
--------- ------------------- 
SSL       TLSv1.3,TLSv1.2     &lt;/LI-CODE&gt;&lt;P&gt;Thanks in advance for any ideas.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 14:31:57 GMT</pubDate>
    <dc:creator>LHow</dc:creator>
    <dc:date>2024-10-15T14:31:57Z</dc:date>
    <item>
      <title>Powershell connect-nacontroller results in "Could not create SSL/TLS secure channel"</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Powershell-connect-nacontroller-results-in-quot-Could-not-create-SSL-TLS-secure/m-p/455806#M3290</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;New array deployment here. Former NetApp customer returning and looking to manage some aspects of day to day admin via the Netapp.ONTAP powershell modules. I have been unable to get connected and support suggested posting here.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if (Get-Module -ListAvailable -Name NetApp.ONTAP) {
    Write-Host "NetApp Modules are installed..."
} 
else {
    Write-Host "NetApp Module does not exist....installing now...."
    Install-Module -Name NetApp.ONTAP
}

# Variables
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13
$NetAppArray='netapp01.domain.com'
$cred=$(Get-Credential)

# Connect to array
Connect-NaController -Name $NetAppArray -Credential $cred -HTTPS&lt;/LI-CODE&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Error as follows:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Connect-NaController : Connection to netapp01.domain.com using HTTPS failed - The request was aborted: Could not create SSL/TLS secure channel.&lt;BR /&gt;The error may be resolved by generating a new certificate on the storage controller, with a longer key length.&lt;BR /&gt;At O:\Network\Scripts\PowerShell\NetApp.ps1:17 char:1&lt;BR /&gt;+ Connect-NaController -Name $NetAppArray -Credential $cred -HTTPS&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidResult: (netapp01.domain.com:NaController) [Connect-NaController], NaConnectionSSLException&lt;BR /&gt;+ FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Things I have tried:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Verified key length is 2048. I have tried forcing TLS 1.2 and 1.3 from powershell. Tried shortname/FQDN/IP. I have used the built-in self signed cert as well as a purchased digicert wildcard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Some output from the array (run with 'set advanced'):&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;netapp01::*&amp;gt; security certificate show -fields size -type server                    
vserver common-name serial           ca       type   subtype cert-name                 size 
------- ----------- ---------------- -------- ------ ------- ------------------------- ---- 
netapp01 
        netapp01    0C02639083A3E774E2E1B51125F1BB34 
                                     "DigiCert Global G2 TLS RSA SHA256 2020 CA1" 
                                              server -       netapp01_wildcard2025     2048 
netapp01 
        netapp01    17D48425558215B2 netapp01 server -       netapp01_17D48425558215B2 2048 
4 entries were displayed.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;netapp01::*&amp;gt; security config show -fields supported-protocols
interface supported-protocols 
--------- ------------------- 
SSL       TLSv1.3,TLSv1.2     &lt;/LI-CODE&gt;&lt;P&gt;Thanks in advance for any ideas.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:31:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Powershell-connect-nacontroller-results-in-quot-Could-not-create-SSL-TLS-secure/m-p/455806#M3290</guid>
      <dc:creator>LHow</dc:creator>
      <dc:date>2024-10-15T14:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell connect-nacontroller results in "Could not create SSL/TLS secure channel"</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Powershell-connect-nacontroller-results-in-quot-Could-not-create-SSL-TLS-secure/m-p/455807#M3291</link>
      <description>&lt;P&gt;Just tried connect-nccontroller and that works, so will proceed with that.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 15:32:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Powershell-connect-nacontroller-results-in-quot-Could-not-create-SSL-TLS-secure/m-p/455807#M3291</guid>
      <dc:creator>LHow</dc:creator>
      <dc:date>2024-10-15T15:32:14Z</dc:date>
    </item>
  </channel>
</rss>

