<?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>article How to setup a Data Connection to the QRS API using Certificates on the June 2017 release or higher in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-setup-a-Data-Connection-to-the-QRS-API-using-Certificates/ta-p/1712498</link>
    <description>&lt;P&gt;This article will show how to connect to the Qlik Sense Repository API through a Data Connection using Certificates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;Resolution&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new data connection using the Qlik REST Connector&lt;/LI&gt;
&lt;LI&gt;Add the URL of the QRS endpoint that you want to connect to:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="url request.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49052i05FD6A9D23C5E145/image-size/large?v=v2&amp;amp;px=999" role="button" title="url request.png" alt="url request.png" /&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;STRONG&gt;Note&lt;/STRONG&gt;: Since we are connecting using Certificates, we need to use port 4242 (&lt;A style="background-color: #ffffff;" href="https://help.qlik.com/en-US/sense-developer/February2018/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Connect-API.htm" target="_blank" rel="noopener"&gt;help.qlik.com reference&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Keep&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;Auto detect response type&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;selected to the default value&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;In the Authentication section, select Anonymous and Use certificate from file:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="file location.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49053i8ADEAD54BD6246DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="file location.png" alt="file location.png" /&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;STRONG&gt;Note&lt;/STRONG&gt;: For the Certificate file location, the expected format is file.pfx pointing to the client certificate used by Qlik Sense. Do note that this is a filename and not a file location. The file system location of the file is determined by the&amp;nbsp;CertificateDirectoryPath key in the Qlik REST connector config (C:\Program Files\Common Files\Qlik\Custom Data\QvRestConnector\QvRestConnector.exe.config). The default location where the Qlik REST connector will look for certificates is&amp;nbsp;C:\ProgramData\Qlik\Sense\Engine\Certificates&lt;BR /&gt;&lt;BR /&gt;See article&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Export-client-certificate-and-root-certificate-to-make-API-calls/ta-p/1715515" target="_blank" rel="noopener"&gt;Export client certificate and root certificate to make API calls &lt;/A&gt;&amp;nbsp;for instructions on exporting certificates from the QMC&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: The Qlik REST connector requires a password on the exported certificates for security purposes.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;For the Additional Request Parameters section, you will need to add in the following values:&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Query parameter:
&lt;UL&gt;
&lt;LI&gt;Name: xrfkey&lt;/LI&gt;
&lt;LI&gt;Value: &lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Connect-API-Using-Xrfkey-Headers.htm" target="_blank" rel="noopener"&gt;16 character alphanumeric string&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Query headers:
&lt;UL&gt;
&lt;LI&gt;Name: X-Qlik-Xrfkey&lt;/LI&gt;
&lt;LI&gt;Value: Same 16 character alphanumeric string from the&amp;nbsp;xrfkey value&lt;/LI&gt;
&lt;LI&gt;Name: X-Qlik-User&lt;/LI&gt;
&lt;LI&gt;Value:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Injected-Request-Headers-X-Qlik-User.htm" target="_blank" rel="noopener"&gt;X-Qlik-User: UserDirectory=&amp;lt;directory&amp;gt;; UserId=&amp;lt;userid&amp;gt;&lt;/A&gt;
&lt;UL&gt;
&lt;LI&gt;This user will need to have the needed rights on the API endpoint. Using a RootAdmin account here is recommended.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: If using INTERNAL accounts, it is recommended to use the sa_api user rather than sa_repository. The sa_repository user is used by the Repository Service whereas the sa_api user is purpose built for use in API use cases. This allows better tracking through logs should you need to investigate what occurred on a system.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Name: Response-Type&lt;/LI&gt;
&lt;LI&gt;Value: application/json&lt;BR /&gt;&lt;BR /&gt;Like so:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="additional request paramters.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49054iB9CA3CCB6DE38BE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="additional request paramters.png" alt="additional request paramters.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;Test the connection and save it when it is successful.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 08:56:47 GMT</pubDate>
    <dc:creator>Andre_Sostizzo</dc:creator>
    <dc:date>2021-02-15T08:56:47Z</dc:date>
    <item>
      <title>How to setup a Data Connection to the QRS API using Certificates on the June 2017 release or higher</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-setup-a-Data-Connection-to-the-QRS-API-using-Certificates/ta-p/1712498</link>
      <description>&lt;P&gt;This article will show how to connect to the Qlik Sense Repository API through a Data Connection using Certificates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;Resolution&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new data connection using the Qlik REST Connector&lt;/LI&gt;
&lt;LI&gt;Add the URL of the QRS endpoint that you want to connect to:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="url request.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49052i05FD6A9D23C5E145/image-size/large?v=v2&amp;amp;px=999" role="button" title="url request.png" alt="url request.png" /&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;STRONG&gt;Note&lt;/STRONG&gt;: Since we are connecting using Certificates, we need to use port 4242 (&lt;A style="background-color: #ffffff;" href="https://help.qlik.com/en-US/sense-developer/February2018/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Connect-API.htm" target="_blank" rel="noopener"&gt;help.qlik.com reference&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Keep&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;Auto detect response type&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;selected to the default value&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;In the Authentication section, select Anonymous and Use certificate from file:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="file location.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49053i8ADEAD54BD6246DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="file location.png" alt="file location.png" /&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;STRONG&gt;Note&lt;/STRONG&gt;: For the Certificate file location, the expected format is file.pfx pointing to the client certificate used by Qlik Sense. Do note that this is a filename and not a file location. The file system location of the file is determined by the&amp;nbsp;CertificateDirectoryPath key in the Qlik REST connector config (C:\Program Files\Common Files\Qlik\Custom Data\QvRestConnector\QvRestConnector.exe.config). The default location where the Qlik REST connector will look for certificates is&amp;nbsp;C:\ProgramData\Qlik\Sense\Engine\Certificates&lt;BR /&gt;&lt;BR /&gt;See article&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Export-client-certificate-and-root-certificate-to-make-API-calls/ta-p/1715515" target="_blank" rel="noopener"&gt;Export client certificate and root certificate to make API calls &lt;/A&gt;&amp;nbsp;for instructions on exporting certificates from the QMC&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: The Qlik REST connector requires a password on the exported certificates for security purposes.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;For the Additional Request Parameters section, you will need to add in the following values:&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Query parameter:
&lt;UL&gt;
&lt;LI&gt;Name: xrfkey&lt;/LI&gt;
&lt;LI&gt;Value: &lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Connect-API-Using-Xrfkey-Headers.htm" target="_blank" rel="noopener"&gt;16 character alphanumeric string&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Query headers:
&lt;UL&gt;
&lt;LI&gt;Name: X-Qlik-Xrfkey&lt;/LI&gt;
&lt;LI&gt;Value: Same 16 character alphanumeric string from the&amp;nbsp;xrfkey value&lt;/LI&gt;
&lt;LI&gt;Name: X-Qlik-User&lt;/LI&gt;
&lt;LI&gt;Value:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Injected-Request-Headers-X-Qlik-User.htm" target="_blank" rel="noopener"&gt;X-Qlik-User: UserDirectory=&amp;lt;directory&amp;gt;; UserId=&amp;lt;userid&amp;gt;&lt;/A&gt;
&lt;UL&gt;
&lt;LI&gt;This user will need to have the needed rights on the API endpoint. Using a RootAdmin account here is recommended.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: If using INTERNAL accounts, it is recommended to use the sa_api user rather than sa_repository. The sa_repository user is used by the Repository Service whereas the sa_api user is purpose built for use in API use cases. This allows better tracking through logs should you need to investigate what occurred on a system.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Name: Response-Type&lt;/LI&gt;
&lt;LI&gt;Value: application/json&lt;BR /&gt;&lt;BR /&gt;Like so:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="additional request paramters.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49054iB9CA3CCB6DE38BE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="additional request paramters.png" alt="additional request paramters.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;Test the connection and save it when it is successful.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 08:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-setup-a-Data-Connection-to-the-QRS-API-using-Certificates/ta-p/1712498</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2021-02-15T08:56:47Z</dc:date>
    </item>
  </channel>
</rss>

