<?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 Connect to Qliksense QRS using PHP and certificates in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418683#M8764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to connect to Qliksense QRS using the instructions here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_PHP.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_PHP.htm"&gt;http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_PHP.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I exported the certificates from the QMC and converted them using the instructions found here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_cURL_PEM_Format.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_cURL_PEM_Format.htm"&gt;http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_cURL_PEM_Format.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the below code to connect, but whenever I run the code I receive the following error:&amp;nbsp; cURL error (58):&amp;nbsp; Problem with the local SSL certificate.&amp;nbsp; Does anyone have any experience with connecting using PHP that might be able to assist with what's going wrong with this code?&amp;nbsp; I'm not sure what the problem is with the certificate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15064460073234068 jive_text_macro" jivemacro_uid="_15064460073234068" modifiedtitle="true"&gt;
&lt;P&gt; &amp;lt;?php&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //URL of the server &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $QRSurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://server.domain.com:4242/qrs" rel="nofollow" target="_blank"&gt;https://server.domain.com:4242/qrs&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Endpoint to call (with xrfkey parameter added) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $endpoint = "/app?xrfkey=0123456789abcdef";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Location of QRS client certificate &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $QRSCertfile = "C:\xampp\htdocs\Cubiest\Certs\client.pem";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Set up the required headers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $headers = array( 'Accept: application/json', &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Content-Type: application/json', &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'x-qlik-xrfkey: 0123456789abcdef', &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'X-Qlik-User: UserDirectory=directory;UserId=myuserid' );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create Connection using Curl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ch = curl_init($QRSurl . $endpoint); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSLCERT, $QRSCertfile);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Execute and print response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $data = curl_exec($ch); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $data;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($errno = curl_errno($ch))&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $error_message = curl_strerror($errno);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "cURL error ({$errno}):\n {$error_message}";&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2017 17:17:26 GMT</pubDate>
    <dc:creator>nsm1234567</dc:creator>
    <dc:date>2017-09-26T17:17:26Z</dc:date>
    <item>
      <title>Connect to Qliksense QRS using PHP and certificates</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418683#M8764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to connect to Qliksense QRS using the instructions here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_PHP.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_PHP.htm"&gt;http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_PHP.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I exported the certificates from the QMC and converted them using the instructions found here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_cURL_PEM_Format.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_cURL_PEM_Format.htm"&gt;http://help.qlik.com/en-US/sense-developer/1.0/Subsystems/Qlik_Sense_Repository_Service_API/Content/QRS%20API/Repository_Example_Connecting_cURL_PEM_Format.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the below code to connect, but whenever I run the code I receive the following error:&amp;nbsp; cURL error (58):&amp;nbsp; Problem with the local SSL certificate.&amp;nbsp; Does anyone have any experience with connecting using PHP that might be able to assist with what's going wrong with this code?&amp;nbsp; I'm not sure what the problem is with the certificate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15064460073234068 jive_text_macro" jivemacro_uid="_15064460073234068" modifiedtitle="true"&gt;
&lt;P&gt; &amp;lt;?php&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //URL of the server &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $QRSurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://server.domain.com:4242/qrs" rel="nofollow" target="_blank"&gt;https://server.domain.com:4242/qrs&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Endpoint to call (with xrfkey parameter added) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $endpoint = "/app?xrfkey=0123456789abcdef";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Location of QRS client certificate &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $QRSCertfile = "C:\xampp\htdocs\Cubiest\Certs\client.pem";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Set up the required headers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $headers = array( 'Accept: application/json', &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Content-Type: application/json', &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'x-qlik-xrfkey: 0123456789abcdef', &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'X-Qlik-User: UserDirectory=directory;UserId=myuserid' );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create Connection using Curl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ch = curl_init($QRSurl . $endpoint); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSLCERT, $QRSCertfile);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Execute and print response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $data = curl_exec($ch); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $data;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($errno = curl_errno($ch))&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $error_message = curl_strerror($errno);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "cURL error ({$errno}):\n {$error_message}";&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 17:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418683#M8764</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2017-09-26T17:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Qliksense QRS using PHP and certificates</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418684#M8765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are referencing the version 1.0 help. In newer versions of Qlik Sense it is possible to export a certificate in PEM format in the QMC, so you don't have to convert them any longer. What version of Qlik Sense are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you export a certificate make sure to select the checkbox 'Include secret key'.&lt;/P&gt;&lt;P&gt;See here for documentation (September 2017) to export certificate: &lt;A href="http://help.qlik.com/en-US/sense/September2017/Subsystems/ManagementConsole/Content/export-certificates.htm" title="http://help.qlik.com/en-US/sense/September2017/Subsystems/ManagementConsole/Content/export-certificates.htm"&gt;Exporting certificates through the QMC ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you export the certificate via QMC in PEM format (and select 'Include secret key') you will get a client.pem and client_key.pem file. Try to add the client_key.pem in the cURL request (see line 26 and 27 below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1506514269790643 jive_text_macro" jivemacro_uid="_1506514269790643"&gt;
&lt;P&gt;&amp;lt;?php&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;//URL of the server&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$QRSurl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://server.domain.com:4242/qrs" rel="nofollow" target="_blank"&gt;https://server.domain.com:4242/qrs&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Endpoint to call (with xrfkey parameter added)&lt;/P&gt;
&lt;P&gt;$endpoint = "/app?xrfkey=0123456789abcdef";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Location of QRS client certificate&lt;/P&gt;
&lt;P&gt;$QRSCertfile = "C:\xampp\htdocs\Cubiest\Certs\client.pem";&lt;/P&gt;
&lt;P&gt;$QRSCertKeyfile = "C:\xampp\htdocs\Cubiest\Certs\client_key.pem";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Set up the required headers&lt;/P&gt;
&lt;P&gt;$headers = array( 'Accept: application/json',&lt;/P&gt;
&lt;P&gt;'Content-Type: application/json',&lt;/P&gt;
&lt;P&gt;'x-qlik-xrfkey: 0123456789abcdef',&lt;/P&gt;
&lt;P&gt;'X-Qlik-User: UserDirectory=directory;UserId=myuserid' );&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Create Connection using Curl&lt;/P&gt;
&lt;P&gt;$ch = curl_init($QRSurl . $endpoint);&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_SSLCERT, $QRSCertfile);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Add client_key and set certtype to PEM&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_SSLCERTTYPE, 'PEM');&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_SSLKEY, $QRSCertKeyfile);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);&lt;/P&gt;
&lt;P&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Execute and print response&lt;/P&gt;
&lt;P&gt;$data = curl_exec($ch);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;echo $data;&lt;/P&gt;
&lt;P&gt;if ($errno = curl_errno($ch))&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $error_message = curl_strerror($errno);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "cURL error ({$errno}):\n {$error_message}";&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;?&amp;gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Bas Knol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 12:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418684#M8765</guid>
      <dc:creator>bknol</dc:creator>
      <dc:date>2017-09-27T12:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Qliksense QRS using PHP and certificates</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418685#M8766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; I made the changes that you suggested, unfortunately, my issue wasn't resolved.&amp;nbsp; Strangely, if I run the below curl request from the command line, it returns:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;{"buildVersion":"12.16.1.0","buildDate":"9/20/2013 10:09:00 AM","databaseProvide&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;r":"Devart.Data.PostgreSql","nodeType":1,"sharedPersistence":false,"requiresBoot&lt;/P&gt;&lt;P&gt;strap":false,"schemaPath":"About"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15066647337896848" jivemacro_uid="_15066647337896848"&gt;
&lt;P&gt;&lt;CODE style="font-style: inherit; font-weight: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;c&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;\curl\curl&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;exe &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;header &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"Accept: application/json"&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;header &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"Content-Type: application/json"&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;header &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"x-qlik-xrfkey: 0123456789abcdef"&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;header &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"X-Qlik-User: UserDirectory=directory;UserId=username"&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;key C&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;\xampp\htdocs\Cubiest\Certs\client_key&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;pem &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;insecure &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;cert&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;type pem &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;cert C&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;\xampp\htdocs\Cubiest\Certs\client&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;pem&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myurl:4242/qrs/about?xrfkey=0123456789abcdef" rel="nofollow" target="_blank"&gt;https://myurl:4242/qrs/about?xrfkey=0123456789abcdef&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to code for this in php, it returns that there's a problem with the local certificate.&amp;nbsp; I tried fiddling with the proxy settings as well, but that didn't change anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15066648646407299 jive_text_macro" jivemacro_uid="_15066648646407299"&gt;
&lt;P&gt;&lt;CODE style="font-style: inherit; font-weight: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #858c93;"&gt;//Location of QRS client certificate&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; $QRSCertfile &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"C:\xampp\htdocs\Cubiest\Certs\client.pem"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; $QRSCertKeyfile &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"C:\xampp\htdocs\Cubiest\Certs\client_key.pem"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #858c93;"&gt;//Set up the required headers&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; $headers &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; array&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; $headers&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"Accept: application/json"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; $headers&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"Content-Type: application/json"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; $headers&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"X-Qlik-Xrfkey: 0123456789abcdef"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; $headers&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"X-Qlik-User: UserDirectory=directory;UserId=username"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #858c93;"&gt;//Create Connection using Curl&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; $ch &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; curl_init&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_URL&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myurl:4242/qrs/about?xrfkey=0123456789abcdef" rel="nofollow" target="_blank"&gt;https://myurl:4242/qrs/about?xrfkey=0123456789abcdef&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_HTTPHEADER&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; $headers&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_RETURNTRANSFER&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_CUSTOMREQUEST&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"GET"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_SSLKEY&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; $QRSCertKeyfile&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_SSLCERTTYPE&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"PEM"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_SSLCERT&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; $QRSCertfile&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_SSL_VERIFYPEER&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #101094;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; CURLOPT_SSL_VERIFYHOST&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #101094;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #858c93;"&gt;//Execute and print response&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp; $data &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; curl_exec&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; $information &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; curl_getinfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; echo $data&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; $error_message &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt; curl_strerror&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;curl_errno&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;$ch&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; echo &lt;/SPAN&gt;&lt;SPAN class="str" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #7d2727;"&gt;"cURL error (58):\n {$error_message}"&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit; color: #303336;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 06:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418685#M8766</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2017-09-29T06:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Qliksense QRS using PHP and certificates</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418686#M8767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured this last part out!&amp;nbsp; It turns out the application wasn't happy with the relative paths to the certificates.&amp;nbsp; Changing as I've done below returns the correct result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15066669768296216" jivemacro_uid="_15066669768296216" modifiedtitle="true"&gt;
&lt;P&gt;//Create Connection using Curl&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ch = curl_init();&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_URL, "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myurl/qrs/about?xrfkey=0123456789abcdef" rel="nofollow" target="_blank"&gt;https://myurl/qrs/about?xrfkey=0123456789abcdef&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_PROXY, $proxy);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_VERBOSE, 1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_CERTINFO, 1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSLKEY, __DIR__."/Certs/client_key.pem");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSLCERTTYPE, "PEM");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSLCERT, __DIR__."/Certs/client.pem");&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 06:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connect-to-Qliksense-QRS-using-PHP-and-certificates/m-p/1418686#M8767</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2017-09-29T06:37:07Z</dc:date>
    </item>
  </channel>
</rss>

