<?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: Certificate Issue When trying to make a server connection using API's in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Certificate-Issue-When-trying-to-make-a-server-connection-using/m-p/1845161#M15714</link>
    <description>&lt;P&gt;Changes the code again slightly to the following:&lt;/P&gt;&lt;P&gt;cls&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#$ProxyUsesSSL = $true&lt;BR /&gt;$TrustAllCerts = $true&lt;BR /&gt;&lt;BR /&gt;$computerPort = "4747"&lt;BR /&gt;$computerName = "epreapp029sa.application.enet"&lt;BR /&gt;$userDirectory = "ENETAPP"&lt;BR /&gt;$userName = "UserName01"&lt;/P&gt;&lt;P&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Engine.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Sense.JsonRpc.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Sense.Client.dll"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$uri = "wss://$($computerName):$($computerPort)/app/"&lt;/P&gt;&lt;P&gt;Write-host "uri: $uri"&lt;/P&gt;&lt;P&gt;$location = [Qlik.Engine.Location]::FromUri($uri)&lt;/P&gt;&lt;P&gt;$location&lt;/P&gt;&lt;P&gt;[Qlik.Engine.LocationExtensions]::AsDirectConnection($location,$userDirectory,$userName,$TrustAllCerts)&lt;/P&gt;&lt;P&gt;# get the app's appIdentifier&lt;BR /&gt;$AppIdentifiers = [Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location)&lt;/P&gt;&lt;P&gt;and got the following error message:&lt;/P&gt;&lt;P&gt;uri: wss://epreapp029sa.application.enet:4747/app/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;VirtualProxyPath :&lt;BR /&gt;SessionCookie :&lt;BR /&gt;CustomUserCookies : {}&lt;BR /&gt;CustomUserHeaders : {}&lt;BR /&gt;CustomUserUrlParameters : {}&lt;BR /&gt;ServerUri : wss://epreapp029sa.application.enet:4747/app/&lt;/P&gt;&lt;P&gt;Exception calling "GetAppIdentifiers" with "1" argument(s): "Value cannot be&lt;BR /&gt;null.&lt;BR /&gt;Parameter name: certificates"&lt;BR /&gt;At D:\QlikNprinting\PowerShell\Script\TestConnect.ps1:29 char:1&lt;/P&gt;&lt;P&gt;+ $AppIdentifiers =&lt;BR /&gt;[Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location) ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;~~~&lt;BR /&gt;&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException&lt;BR /&gt;&lt;BR /&gt;+ FullyQualifiedErrorId : ArgumentNullException&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 02:41:39 GMT</pubDate>
    <dc:creator>michasiuk</dc:creator>
    <dc:date>2021-10-12T02:41:39Z</dc:date>
    <item>
      <title>Certificate Issue When trying to make a server connection using API's</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Certificate-Issue-When-trying-to-make-a-server-connection-using/m-p/1845142#M15712</link>
      <description>&lt;P&gt;I have bee trying to make to the Qlik Sense server using the engine API's with the following script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;$computerPort = "4747"&lt;BR /&gt;$computerName = "Computer01"&lt;BR /&gt;$userDirectory = "Domain"&lt;BR /&gt;$userName = "UserName01"&lt;/P&gt;&lt;P&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Engine.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Sense.JsonRpc.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Sense.Client.dll"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$uri = "wss://$($computerName):$($computerPort)"&lt;/P&gt;&lt;P&gt;Write-host "uri: $uri"&lt;/P&gt;&lt;P&gt;$location = [Qlik.Engine.Location]::FromUri($uri)&lt;/P&gt;&lt;P&gt;$location&lt;/P&gt;&lt;P&gt;[Qlik.Engine.LocationExtensions]::AsDirectConnection($location,$userDirectory,$userName)&lt;/P&gt;&lt;P&gt;# get the app's appIdentifier&lt;BR /&gt;$AppIdentifiers = [Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location)&lt;/P&gt;&lt;P&gt;For some reason getting the following error.&lt;/P&gt;&lt;P&gt;I not very knowledgeable with with the API's as of yet and am still learning so I am wondering how use the certificate in the script to connect to the Qlik Sense Server.&lt;/P&gt;&lt;P&gt;Exception calling "GetAppIdentifiers" with "1" argument(s): "Value cannot be null.&lt;BR /&gt;Parameter name: certificates"&lt;BR /&gt;At D:\QlikNprinting\PowerShell\Script\TestConnect.ps1:25 char:1&lt;BR /&gt;+ $AppIdentifiers = [Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location) ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException&lt;BR /&gt;+ FullyQualifiedErrorId : ArgumentNullException&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 23:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Certificate-Issue-When-trying-to-make-a-server-connection-using/m-p/1845142#M15712</guid>
      <dc:creator>michasiuk</dc:creator>
      <dc:date>2021-10-11T23:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate Issue When trying to make a server connection using API's</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Certificate-Issue-When-trying-to-make-a-server-connection-using/m-p/1845161#M15714</link>
      <description>&lt;P&gt;Changes the code again slightly to the following:&lt;/P&gt;&lt;P&gt;cls&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#$ProxyUsesSSL = $true&lt;BR /&gt;$TrustAllCerts = $true&lt;BR /&gt;&lt;BR /&gt;$computerPort = "4747"&lt;BR /&gt;$computerName = "epreapp029sa.application.enet"&lt;BR /&gt;$userDirectory = "ENETAPP"&lt;BR /&gt;$userName = "UserName01"&lt;/P&gt;&lt;P&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Engine.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Sense.JsonRpc.dll"&lt;BR /&gt;add-type -path "D:\QlikNprinting\PowerShell\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Sense.Client.dll"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$uri = "wss://$($computerName):$($computerPort)/app/"&lt;/P&gt;&lt;P&gt;Write-host "uri: $uri"&lt;/P&gt;&lt;P&gt;$location = [Qlik.Engine.Location]::FromUri($uri)&lt;/P&gt;&lt;P&gt;$location&lt;/P&gt;&lt;P&gt;[Qlik.Engine.LocationExtensions]::AsDirectConnection($location,$userDirectory,$userName,$TrustAllCerts)&lt;/P&gt;&lt;P&gt;# get the app's appIdentifier&lt;BR /&gt;$AppIdentifiers = [Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location)&lt;/P&gt;&lt;P&gt;and got the following error message:&lt;/P&gt;&lt;P&gt;uri: wss://epreapp029sa.application.enet:4747/app/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;VirtualProxyPath :&lt;BR /&gt;SessionCookie :&lt;BR /&gt;CustomUserCookies : {}&lt;BR /&gt;CustomUserHeaders : {}&lt;BR /&gt;CustomUserUrlParameters : {}&lt;BR /&gt;ServerUri : wss://epreapp029sa.application.enet:4747/app/&lt;/P&gt;&lt;P&gt;Exception calling "GetAppIdentifiers" with "1" argument(s): "Value cannot be&lt;BR /&gt;null.&lt;BR /&gt;Parameter name: certificates"&lt;BR /&gt;At D:\QlikNprinting\PowerShell\Script\TestConnect.ps1:29 char:1&lt;/P&gt;&lt;P&gt;+ $AppIdentifiers =&lt;BR /&gt;[Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location) ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;~~~&lt;BR /&gt;&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException&lt;BR /&gt;&lt;BR /&gt;+ FullyQualifiedErrorId : ArgumentNullException&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 02:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Certificate-Issue-When-trying-to-make-a-server-connection-using/m-p/1845161#M15714</guid>
      <dc:creator>michasiuk</dc:creator>
      <dc:date>2021-10-12T02:41:39Z</dc:date>
    </item>
  </channel>
</rss>

