<?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 configure a .pfx certificate for use with the Qlik NPrinting Web Console and NewsStand in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-a-pfx-certificate-for-use-with-the-Qlik/ta-p/1711079</link>
    <description>&lt;P&gt;How to configure to use a new .pfx certificate for use with Qlik NPrinting Web Console and/or the NewsStand after converting it to the .key and .crt format&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;&lt;STRONG&gt;CNG-type certificates are not supported for use with NPrinting Server.&lt;/STRONG&gt; See &lt;U&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/On-Demand/Install-Components.htm#anchor-1" target="_blank" rel="noopener"&gt;Requirements&lt;/A&gt;&lt;/U&gt;(help.qlik.com).&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Items Needed:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;A certificate with the &lt;STRONG&gt;Private Key&lt;/STRONG&gt; that can be extracted (PFX files are the easiest)&lt;/LI&gt;
&lt;LI&gt;Import the Password for the PFX certificate&lt;/LI&gt;
&lt;LI&gt;OpenSSL (3rd Party free software- see disclaimer at end of this article) to extract the certificate and gather the .crt and .key files. See&lt;A href="https://help.qlik.com/en-US/nprinting/June2019/Content/NPrinting/DeployingQVNprinting/Installing-SSL.htm" target="_blank" rel="noopener"&gt; Installing OpenSSL&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Please review this information with your internal Certificate Authority or appropriate&amp;nbsp;IT team that would provide the certificate and follow their guidelines if it differs from the steps here. If a new certificate cannot be issued for the Qlik NPrinting server, a workaround for the issue may be found under &lt;A href="https://support.qlik.com/articles/Basic/General-what-does-the-certificate-error-red-cross-in-browser-mean-and-how-to-fix-it" target="_blank" rel="noopener"&gt;General: what does the certificate error(red cross) in browser mean and how to fix it&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;All the steps below can be performed automatically with one click using a third-party tool called&amp;nbsp;&lt;A href="https://github.com/StevenJDH/NPrinting-Certificate-Configurator" target="_blank" rel="noopener"&gt;NPrinting Certificate Configurator&lt;/A&gt;, which can be downloaded from the &lt;STRONG&gt;Releases&lt;/STRONG&gt; section. Keep in mind that&amp;nbsp;Qlik does&amp;nbsp;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&amp;nbsp;support the 3rd&amp;nbsp;party&amp;nbsp;software mentioned and used in this documentation. Please use them at your own discretion and, if concerned, contact the proper IT team within your company to verify the ability to use non-Qlik related software in the environment.&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;Before proceeding to the following steps, you must first install Open SSL. See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/DeployingQVNprinting/Installing-SSL.htm" target="_blank" rel="noopener"&gt;Installing OpenSSL&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Extract the .CRT and .KEY files&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;H3&gt;&lt;STRONG&gt;Three Steps:&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;U&gt;&lt;STRONG&gt;Extract the .crt file from the .pfx file&lt;/STRONG&gt;&lt;/U&gt;. Using an administrative command prompt, navigate to the Open SSL/bin folder on your NPrinting computer and extract the .crt file from the .pfx file.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 750px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57019i8A47B2C4F0D1F912/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="font-family: inherit;"&gt;Test Command:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt; openssl pkcs12 -in C:\NPCerts\QS3Cert.pfx -clcerts -nokeys -out C:\NPCerts\QS3.crt&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Example Command:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt; openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt; The Import Password is determined by the CA when the certificate is exported/created. This is to help protect the Private Key. It should be supplied with the certificate from the 3rd Party SSL CA&amp;nbsp; / Internal CA. If you do not have this password, you will not be able to use the certificate.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt;Extract the .key file from the .pfx file&lt;/STRONG&gt;.&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 794px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57020iA86B2724A4749294/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Test Command:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt; openssl pkcs12 -in C:\NPCerts\QS3Cert.pfx -nocerts -out C:\NPCerts\QS3.key&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Example Command:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt; The PEM passphrase is used to protect the new .key file you’ve created.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt;3. Decrypt the .key file&lt;/STRONG&gt;&lt;/U&gt;. Qlik NPrinting &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;cannot &lt;/STRONG&gt;&lt;SPAN&gt;have a passphrase on the .key file. Follow steps below to remove/decrypt the .key file. This is &lt;STRONG&gt;REQUIRED&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 695px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57021iCDFAC1ECE675672B/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;T&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;est Command:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt; openssl rsa -in C:\NPCerts\QS3.key -out C:\NPCerts\QS3.key&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Example Command:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;openssl rsa -in [keyfile-encrypted.key] -out [keyfile-decrypted.key]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Note: &lt;/STRONG&gt;&lt;SPAN&gt;At this stage, we’re removing the pass phrase from the .key, unencrypting it for Qlik NPrinting to read it.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;In the &lt;STRONG style="font-family: inherit;"&gt;Test Command&lt;/STRONG&gt;&lt;SPAN&gt;, we’re overwriting the same file in the command. This works, but if you want a separate copy of the encrypted and decrypted Key you’ll need to make them different file names or locations.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;BR /&gt;&lt;STRONG&gt;NPrinting Web Console&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Place the extracted &lt;FONT size="4"&gt;&lt;EM&gt;&lt;STRONG&gt;.crt&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt; and &lt;FONT size="4"&gt;&lt;EM&gt;&lt;STRONG&gt;.key&lt;/STRONG&gt; &lt;/EM&gt;&lt;/FONT&gt;files in the webconsoleproxy folder and update the &lt;EM&gt;&lt;STRONG&gt;app.conf&lt;/STRONG&gt;&lt;/EM&gt; file.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 747px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57022iB9379B57596AFC7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Edit the Qlik NPrinting Web Console proxy configuration file: &lt;SPAN&gt;%ProgramData%\NPrinting\webconsoleproxy\app.conf&lt;/SPAN&gt;.
&lt;OL&gt;
&lt;LI&gt;Uncomment by removing the # and change or add the following lines to:&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;http.sslcert=${ProgramData}\NPrinting\webconsoleproxy\NPrinting.crt&lt;/SPAN&gt;. Change the certificate file name if necessary.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;http.sslkey=${ProgramData}\NPrinting\webconsoleproxy\NPrinting.key.&lt;/SPAN&gt; Change the private key file name if necessary.
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;${ProgramData} is the Windows ProgramData&lt;/SPAN&gt; environment variable with the notation for the configuration file. As an alternative, you can insert your full path, for example,&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\NPrinting\webconsoleproxy\NPrinting.crt&lt;/SPAN&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;SAVE the app.conf&lt;/STRONG&gt; file to preserve the changes&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik NPrinting Newsstand&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Place the new &lt;SPAN&gt;.crt / .key&lt;/SPAN&gt; files in the &lt;SPAN&gt;newsstandproxy &lt;/SPAN&gt;folder and update the &lt;EM&gt;&lt;STRONG&gt;app.conf&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; file.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.png" style="width: 757px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57023iAE7C193DC06A19EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG style="font-family: inherit;"&gt;SAVE the app.conf&lt;/STRONG&gt;&lt;SPAN&gt; file to preserve the changes&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Finalize&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;Restart the Qlik NPrinting Web Engine and check the nprinting_webengine.log to verify there’s no issues with new certificate information.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6.png" style="width: 549px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57024i8ED2E58E05C29E0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="6.png" alt="6.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp; The above is an example of a clean start of the Web Engine. Default location for those logs are located: &lt;SPAN&gt;"C:\ProgramData\NPrinting\Logs"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Verify the Certificates&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;Verify that the certificate is being used in the browser.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57025i621AB6FEC2B3AE34/image-size/large?v=v2&amp;amp;px=999" role="button" title="7.png" alt="7.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; In this example, the certificate is correctly being presented to the browser under the URL of &lt;SPAN&gt;qlikserver3.domain.local&lt;/SPAN&gt;. With this certificate, it’s the ONLY name that this certificate will trust.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57026i1B215F89F9AC278C/image-size/large?v=v2&amp;amp;px=999" role="button" title="8.png" alt="8.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; This is the result using the &lt;SPAN&gt;servername &lt;/SPAN&gt;instead of the &lt;SPAN&gt;FQDN&lt;/SPAN&gt;. You can access the URL, but it presents a “Not secure” message, but shows the correctly installed certificate. The reason for this is that the server recognizes the name, but the certificate only allows &lt;SPAN&gt;qlikserver3.domain.local&lt;/SPAN&gt;.&lt;EM&gt;&lt;STRONG&gt; If you want multiple URL/Aliases, they need to be added in the certificate.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A title="Securing the NPrinting Web Console with 3rd party certificates" href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/DeployingQVNprinting/Installing-ssl-certificates.htm" target="_blank" rel="noopener"&gt;Securing the NPrinting Web Console with 3rd party certificates&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 19:44:39 GMT</pubDate>
    <dc:creator>pbr</dc:creator>
    <dc:date>2024-06-10T19:44:39Z</dc:date>
    <item>
      <title>How to configure a .pfx certificate for use with the Qlik NPrinting Web Console and NewsStand</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-a-pfx-certificate-for-use-with-the-Qlik/ta-p/1711079</link>
      <description>&lt;P&gt;How to configure to use a new .pfx certificate for use with Qlik NPrinting Web Console and/or the NewsStand after converting it to the .key and .crt format&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;&lt;STRONG&gt;CNG-type certificates are not supported for use with NPrinting Server.&lt;/STRONG&gt; See &lt;U&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/On-Demand/Install-Components.htm#anchor-1" target="_blank" rel="noopener"&gt;Requirements&lt;/A&gt;&lt;/U&gt;(help.qlik.com).&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Items Needed:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;A certificate with the &lt;STRONG&gt;Private Key&lt;/STRONG&gt; that can be extracted (PFX files are the easiest)&lt;/LI&gt;
&lt;LI&gt;Import the Password for the PFX certificate&lt;/LI&gt;
&lt;LI&gt;OpenSSL (3rd Party free software- see disclaimer at end of this article) to extract the certificate and gather the .crt and .key files. See&lt;A href="https://help.qlik.com/en-US/nprinting/June2019/Content/NPrinting/DeployingQVNprinting/Installing-SSL.htm" target="_blank" rel="noopener"&gt; Installing OpenSSL&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Please review this information with your internal Certificate Authority or appropriate&amp;nbsp;IT team that would provide the certificate and follow their guidelines if it differs from the steps here. If a new certificate cannot be issued for the Qlik NPrinting server, a workaround for the issue may be found under &lt;A href="https://support.qlik.com/articles/Basic/General-what-does-the-certificate-error-red-cross-in-browser-mean-and-how-to-fix-it" target="_blank" rel="noopener"&gt;General: what does the certificate error(red cross) in browser mean and how to fix it&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;All the steps below can be performed automatically with one click using a third-party tool called&amp;nbsp;&lt;A href="https://github.com/StevenJDH/NPrinting-Certificate-Configurator" target="_blank" rel="noopener"&gt;NPrinting Certificate Configurator&lt;/A&gt;, which can be downloaded from the &lt;STRONG&gt;Releases&lt;/STRONG&gt; section. Keep in mind that&amp;nbsp;Qlik does&amp;nbsp;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&amp;nbsp;support the 3rd&amp;nbsp;party&amp;nbsp;software mentioned and used in this documentation. Please use them at your own discretion and, if concerned, contact the proper IT team within your company to verify the ability to use non-Qlik related software in the environment.&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;Before proceeding to the following steps, you must first install Open SSL. See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/DeployingQVNprinting/Installing-SSL.htm" target="_blank" rel="noopener"&gt;Installing OpenSSL&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Extract the .CRT and .KEY files&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;H3&gt;&lt;STRONG&gt;Three Steps:&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;U&gt;&lt;STRONG&gt;Extract the .crt file from the .pfx file&lt;/STRONG&gt;&lt;/U&gt;. Using an administrative command prompt, navigate to the Open SSL/bin folder on your NPrinting computer and extract the .crt file from the .pfx file.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 750px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57019i8A47B2C4F0D1F912/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="font-family: inherit;"&gt;Test Command:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt; openssl pkcs12 -in C:\NPCerts\QS3Cert.pfx -clcerts -nokeys -out C:\NPCerts\QS3.crt&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Example Command:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt; openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt; The Import Password is determined by the CA when the certificate is exported/created. This is to help protect the Private Key. It should be supplied with the certificate from the 3rd Party SSL CA&amp;nbsp; / Internal CA. If you do not have this password, you will not be able to use the certificate.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt;Extract the .key file from the .pfx file&lt;/STRONG&gt;.&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 794px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57020iA86B2724A4749294/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Test Command:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt; openssl pkcs12 -in C:\NPCerts\QS3Cert.pfx -nocerts -out C:\NPCerts\QS3.key&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Example Command:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt; The PEM passphrase is used to protect the new .key file you’ve created.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt;3. Decrypt the .key file&lt;/STRONG&gt;&lt;/U&gt;. Qlik NPrinting &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;cannot &lt;/STRONG&gt;&lt;SPAN&gt;have a passphrase on the .key file. Follow steps below to remove/decrypt the .key file. This is &lt;STRONG&gt;REQUIRED&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 695px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57021iCDFAC1ECE675672B/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;T&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;est Command:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt; openssl rsa -in C:\NPCerts\QS3.key -out C:\NPCerts\QS3.key&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Example Command:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;openssl rsa -in [keyfile-encrypted.key] -out [keyfile-decrypted.key]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Note: &lt;/STRONG&gt;&lt;SPAN&gt;At this stage, we’re removing the pass phrase from the .key, unencrypting it for Qlik NPrinting to read it.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;In the &lt;STRONG style="font-family: inherit;"&gt;Test Command&lt;/STRONG&gt;&lt;SPAN&gt;, we’re overwriting the same file in the command. This works, but if you want a separate copy of the encrypted and decrypted Key you’ll need to make them different file names or locations.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;BR /&gt;&lt;STRONG&gt;NPrinting Web Console&lt;/STRONG&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Place the extracted &lt;FONT size="4"&gt;&lt;EM&gt;&lt;STRONG&gt;.crt&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt; and &lt;FONT size="4"&gt;&lt;EM&gt;&lt;STRONG&gt;.key&lt;/STRONG&gt; &lt;/EM&gt;&lt;/FONT&gt;files in the webconsoleproxy folder and update the &lt;EM&gt;&lt;STRONG&gt;app.conf&lt;/STRONG&gt;&lt;/EM&gt; file.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 747px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57022iB9379B57596AFC7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Edit the Qlik NPrinting Web Console proxy configuration file: &lt;SPAN&gt;%ProgramData%\NPrinting\webconsoleproxy\app.conf&lt;/SPAN&gt;.
&lt;OL&gt;
&lt;LI&gt;Uncomment by removing the # and change or add the following lines to:&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;http.sslcert=${ProgramData}\NPrinting\webconsoleproxy\NPrinting.crt&lt;/SPAN&gt;. Change the certificate file name if necessary.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;http.sslkey=${ProgramData}\NPrinting\webconsoleproxy\NPrinting.key.&lt;/SPAN&gt; Change the private key file name if necessary.
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;${ProgramData} is the Windows ProgramData&lt;/SPAN&gt; environment variable with the notation for the configuration file. As an alternative, you can insert your full path, for example,&amp;nbsp;&lt;SPAN&gt;C:\ProgramData\NPrinting\webconsoleproxy\NPrinting.crt&lt;/SPAN&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;SAVE the app.conf&lt;/STRONG&gt; file to preserve the changes&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik NPrinting Newsstand&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Place the new &lt;SPAN&gt;.crt / .key&lt;/SPAN&gt; files in the &lt;SPAN&gt;newsstandproxy &lt;/SPAN&gt;folder and update the &lt;EM&gt;&lt;STRONG&gt;app.conf&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; file.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.png" style="width: 757px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57023iAE7C193DC06A19EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG style="font-family: inherit;"&gt;SAVE the app.conf&lt;/STRONG&gt;&lt;SPAN&gt; file to preserve the changes&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Finalize&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;Restart the Qlik NPrinting Web Engine and check the nprinting_webengine.log to verify there’s no issues with new certificate information.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6.png" style="width: 549px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57024i8ED2E58E05C29E0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="6.png" alt="6.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp; The above is an example of a clean start of the Web Engine. Default location for those logs are located: &lt;SPAN&gt;"C:\ProgramData\NPrinting\Logs"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Verify the Certificates&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;Verify that the certificate is being used in the browser.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57025i621AB6FEC2B3AE34/image-size/large?v=v2&amp;amp;px=999" role="button" title="7.png" alt="7.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; In this example, the certificate is correctly being presented to the browser under the URL of &lt;SPAN&gt;qlikserver3.domain.local&lt;/SPAN&gt;. With this certificate, it’s the ONLY name that this certificate will trust.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57026i1B215F89F9AC278C/image-size/large?v=v2&amp;amp;px=999" role="button" title="8.png" alt="8.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; This is the result using the &lt;SPAN&gt;servername &lt;/SPAN&gt;instead of the &lt;SPAN&gt;FQDN&lt;/SPAN&gt;. You can access the URL, but it presents a “Not secure” message, but shows the correctly installed certificate. The reason for this is that the server recognizes the name, but the certificate only allows &lt;SPAN&gt;qlikserver3.domain.local&lt;/SPAN&gt;.&lt;EM&gt;&lt;STRONG&gt; If you want multiple URL/Aliases, they need to be added in the certificate.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A title="Securing the NPrinting Web Console with 3rd party certificates" href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/DeployingQVNprinting/Installing-ssl-certificates.htm" target="_blank" rel="noopener"&gt;Securing the NPrinting Web Console with 3rd party certificates&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 19:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-configure-a-pfx-certificate-for-use-with-the-Qlik/ta-p/1711079</guid>
      <dc:creator>pbr</dc:creator>
      <dc:date>2024-06-10T19:44:39Z</dc:date>
    </item>
  </channel>
</rss>

