<?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: Calling a WFA Workflow Using Rest over HTTPS in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142101#M25935</link>
    <description>&lt;P&gt;Are you sure you do not have any troubles related&amp;nbsp;to WFA using a self-signed certificate?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 14:30:57 GMT</pubDate>
    <dc:creator>Damien_Queen</dc:creator>
    <dc:date>2018-08-14T14:30:57Z</dc:date>
    <item>
      <title>Calling a WFA Workflow Using Rest over HTTPS</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142058#M25931</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to the Workflow Rest API. all seems to be working weel when i write the code in powershell and execute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but then i put the same code on Workflow command it gives me the below error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;"The underlying connection was closed: An unexpected error occurred on a send."&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;I am plaving the below lines in the code to work with SSL/TLS, and as i mentioned it works well with simple Powershell Script, but not though Workflow engine. specially when using HTTPS connection. Http connection is no problems.&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}&lt;BR /&gt;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;I am also attaching the workflow which calls another workflow with this post.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Any possible support suggestations would help me taking it further.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;,Sheelnidhi&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:25:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142058#M25931</guid>
      <dc:creator>sheelnidhig</dc:creator>
      <dc:date>2025-06-04T13:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a WFA Workflow Using Rest over HTTPS</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142101#M25935</link>
      <description>&lt;P&gt;Are you sure you do not have any troubles related&amp;nbsp;to WFA using a self-signed certificate?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:30:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142101#M25935</guid>
      <dc:creator>Damien_Queen</dc:creator>
      <dc:date>2018-08-14T14:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a WFA Workflow Using Rest over HTTPS</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142159#M25958</link>
      <description>&lt;P&gt;Nops, i dont have any issues with Self Signed Certificates. as i can easily open the HTTPS page and also able to execute the Workflow using REST API using powershell CLI.&lt;/P&gt;
&lt;P&gt;but i get this error then i put the same powershell command in WFA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;,Sheelnidhi&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 08:54:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142159#M25958</guid>
      <dc:creator>sheelnidhig</dc:creator>
      <dc:date>2018-08-17T08:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a WFA Workflow Using Rest over HTTPS</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142191#M25965</link>
      <description>&lt;P&gt;Are you providing credentials in the header of the REST call via PowerShell? If not, you'll need to add that. One way to do that is with a base64 encoded encoded Basic Authorization header like this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;# Create base64 encoded credential&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt; $mycred = Get-Credential&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt; $EncodedAuthorization = [System.Text.Encoding]::UTF8.GetBytes($mycred.username + ':' + $mycred.GetNetworkCredential().password)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt; $EncodedPassword = [System.Convert]::ToBase64String($EncodedAuthorization)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt; $Headers = @{"Authorization"="Basic $($EncodedPassword)"}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Use the created $Headers in the call to the workflow vie Invoke-WebRequest or Invoke-RestMethod&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Invoke-WebRequest -Method GET -Uri $URi -Headers $Headers&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; Invoke-RestMethod -Method GET -Uri $URi -Headers $Headers&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 12:24:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142191#M25965</guid>
      <dc:creator>GregGuignard</dc:creator>
      <dc:date>2018-08-20T12:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a WFA Workflow Using Rest over HTTPS</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142192#M25966</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did some more powershell and it seems that i have found a way, added the below code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;add-type @"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; using System.Net;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; using System.Security.Cryptography.X509Certificates;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; public class TrustAllCertsPolicy : ICertificatePolicy {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; public bool CheckValidationResult(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; ServicePoint srvPoint, X509Certificate certificate,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; WebRequest request, int certificateProblem) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; return true;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"@&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;function Get-BasicAuthCreds {&lt;BR /&gt; param([string]$Username,[string]$Password)&lt;BR /&gt; $AuthString = "{0}:{1}" -f $Username,$Password&lt;BR /&gt; $AuthBytes = [System.Text.Encoding]::Ascii.GetBytes($AuthString)&lt;BR /&gt; return [Convert]::ToBase64String($AuthBytes)&lt;BR /&gt;}&lt;BR /&gt;$BasicCreds = Get-BasicAuthCreds -Username $user -Password $pass&lt;BR /&gt;$credential = New-Object System.Management.Automation.PSCredential ($user, (ConvertTo-SecureString $pass -AsPlainText -Force))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;,Sheelnidhi&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 12:27:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Calling-a-WFA-Workflow-Using-Rest-over-HTTPS/m-p/142192#M25966</guid>
      <dc:creator>sheelnidhig</dc:creator>
      <dc:date>2018-08-20T12:27:32Z</dc:date>
    </item>
  </channel>
</rss>

