Skip to main content Skip to complementary content

Connecting Qlik NPrinting with Qlik Sense

You must connect your Qlik NPrinting installation to one or more Qlik Sense servers if you want Qlik Sense charts in your reports. You can designate one Qlik Sense hub to receive Qlik NPrinting reports.

The Qlik NPrinting Server folder with the Qlik Sense certificates (C:\Program Files\NPrintingServer\Settings\SenseCertificates) is kept during upgrades, but is deleted if you uninstall Qlik NPrinting.

Information noteThis page outlines how to connect to a Qlik Sense server. To connect specific Qlik Sense apps to Qlik NPrinting in order to create reports, see: Connecting to Qlik Sense apps.

Requirements

For Qlik Sense version compatibility, see Qlik Sense compatibility.

  • In the QMC, you must give RootAdmin authorization to the Windows user that runs the Qlik NPrinting Engine Windows service. That Windows user must also be a domain user. See: User accounts.
  • Microsoft Windows NTML authentication on the Qlik Sense proxy. SAML and JWT are not supported. If your virtual proxy uses SAML or JWT authentication, you need to add a new virtual proxy with NTLM enabled for Qlik NPrinting connections. The following must be correctly set up:
    • A Qlik Sense proxy.

    • A Qlik Sense virtual proxy.

    • A link between the proxy and virtual proxy.

    • The Qlik Sense virtual proxy must be reachable from the Qlik NPrinting Engine machines to retrieve data to create reports. It must be reachable from the Qlik NPrinting Server to publish to the Qlik Sense hub.

Limitations

  • Connecting additional Qlik Sense servers will have an impact on Qlik NPrinting Server system resources. You may need to increase the RAM and CPU usage on Qlik NPrinting Engine and Qlik NPrinting Server computers if you connect to multiple Qlik Sense servers. See: Performance.
  • Publishing to multiple Qlik Sense hubs it is not supported.
  • Qlik Sense Desktop is not supported.

Validating the connection to Qlik Sense

Qlik NPrinting must validate the connection to Qlik Sense using certificates.

Certificates must be installed on the Qlik NPrinting scheduler service computer in order to distribute reports from Qlik NPrinting to the Qlik Sense hub. Certificates must also be installed on all Qlik NPrinting Engine computers in order to create connections to Qlik Sense apps. If the Qlik NPrinting scheduler service and Qlik NPrinting Engine are installed on the same computer, you only need to install the certificates once.

Exporting the certificates from the QMC

Do the following:

  1. Log into the QMC as a Qlik Sense administrator or a user with a RootAdmin access.

  2. Select Certificates on the QMC start page or from the Arrow down menu.

    The Export page for Certificates is displayed.

  3. In the Machine name box, type the full computer name of the Qlik NPrinting Server computer that you are creating the certificates for: MYMACHINE.mydomain.com or the IP address.

  4. Leave the Certificate password box empty.

  5. Select .pfx file format in the Export file format for certificates drop-down list.

  6. Click Export certificates in the action bar.

  7. When the export is finished, the dialog Certificates exported is displayed. Certificates will be exported to this disk location displays the target directory.

    The default is: C:\ProgramData\Qlik\Sense\Repository\Exported Certificates\QlikNPrintingServerName

  8. Go to this directory. You should see three files: client.pfx, server.pfx, and root.cer. These are the files that need to be installed in your Qlik NPrinting deployment.

    Windows explorer showing a folder with three certificate files

If you are connecting to multiple Qlik Sense servers, you will need to repeat the export process for each server, and rename the certificate files.

Installing Qlik Sense client certificates

Information noteThis process is mandatory for all Qlik NPrinting deployments that connect to Qlik Sense data or hubs.

You need the client.pfx file that was exported during Exporting the certificates from the QMC. If you are installing certificates from multiple Qlik Sense servers, the client.pfx file must be renamed with a unique name. For example: YourQlikNPrintingServerName.pfx. Repeat this process for each Qlik NPrinting Engine. Each different client.pfx must be given a unique name.

The certificate export process must be repeated on each Qlik Sense server you want to connect to Qlik NPrinting Server and Qlik NPrinting Engine.

Do the following:

  1. Receive the exported and renamed Qlik Sense certificates from your Qlik Sense system administrator.

  2. Log into the Qlik NPrinting Server running the Qlik NPrinting scheduler service, as the Windows Qlik NPrinting Server services administrator.
  3. Add the certificates to C:\Program Files\NPrintingServer\Settings\SenseCertificates. Qlik NPrinting will automatically identify the correct one to be used for each connection.

    Information note

    You should only keep active Qlik Sense certificates used by Qlik NPrinting connections in the C:\Program Files\NPrintingServer\Settings\SenseCertificates folder.

    We recommend that you remove any certificates that are not in use.

  4. Repeat this process on each Qlik NPrinting Engine running the Qlik NPrinting Engine service, using the Windows Qlik NPrinting Engine services administrator.

Additional user access allocation in Qlik Sense is not required for a user to view reports in the Qlik Sense hub.

Configuring server certificate validation for Qlik Sense connections

Information noteThis process is mandatory if you are Turning on server certificate validation Turning on server certificate validation is optional, but recommended.

Server certificate validation ensures that Qlik NPrinting only connects to trusted Qlik Sense servers for data retrieval (getting data or images from a Qlik Sense app) and report publishing to Qlik Sense hubs. Installing these certificates allows Qlik NPrinting to validate the connection to Qlik Sense.

Information noteServer certificate validation is tuned on by default for new Qlik NPrinting installations. If you upgrade from previous Qlik NPrinting versions, this feature is turned off by default, to avoid disrupting any previously configured Qlik Sense tasks. In this case, server certificate validation must be enabled manually.

Requirements

  • Installation locations: The Qlik Sense root.cer file must be installed on Qlik NPrinting Server and Qlik NPrinting Engine machines, by someone logged in as the corresponding Windows Qlik NPrinting Server services administrator or Windows Qlik NPrinting Engine services administrator (if certificates are being installed for the Current user and not for Local machine).

  • Fully Qualified Domain Names (FQDN): When Apply Qlik Sense server certificate validation is enabled, only Fully Qualified Domain Names (FQDN) can be used to connect to Qlik Sense servers for both data retrieval and report publishing.

    All Qlik Sense connections and Qlik Sense hub proxy addresses must contain the full address: http(s)://mysenseserver.mydomain.com/with_proxy_prefix_if_used.

    The shorter address cannot be used: http(s)://mysenseserver/with_proxy_prefix_if_used. If a Qlik Sense connection does not use FQDN proxy addresses, it must be manually changed by a Qlik NPrinting Administrator.

Installing server certificates

You need the root.cer file that was exported during Exporting the certificates from the QMC. This is the file that you need to install on the Qlik NPrinting Server and your Qlik NPrinting Engine machines. Server certificates must be installed on:

  • The Qlik NPrinting Server computer when Qlik Sense hub is used as a report publishing destination.

  • Every Qlik NPrinting Engine machine if connections to Qlik Sense are used. Installing certificates on the Engine machines is not required if QlikView is used exclusively to fetch data

Information noteIf you are installing the certificates on a Qlik NPrinting Server, you must be logged in as a Windows Qlik NPrinting Server services administrator. If you are installing the certificates on a Qlik NPrinting Engine machine, you must be logged in as a Windows Qlik NPrinting Engine services administrator.

Do the following:

  1. Log into a Qlik NPrinting Server or Qlik NPrinting Engine with the correct services administrator account.

  2. Double-click on the root.cer file you already copied and click Install Certificate….

    This starts the Certificate Import Wizard.

  3. The first dialog box will suggest that you install the certificate only for the Current User. This is either the Server or Engine Windows service user account. If you choose Local Machine, the certificate will be available to all users. Click Next.

    Certificate import wizard

  4. Choose Place all certificates in the following store and then click Browse….

  5. Select Trusted Root Certification Authorities and then click OK. Click Next.

  6. Review your selections. They should match the image below, especially Certificate Store Selected by User: Trusted Root Certification Authorities.

    Certificate import wizard review screen

  7. Click Finish.

  8. A Security Warning dialogue may appear. If so, read it and click Yes.

You will see a message informing you that the import was successful. Ensure that all Qlik NPrinting connections and, if used, the Qlik Sense publish to hub proxy address, use FQDN. For more information, see Requirements.

Once you have installed the certificates on the required Qlik NPrinting Server and Qlik NPrinting Engine machines, you are ready to manually enable the feature.

Turning on server certificate validation

Information noteIf you are installing Qlik NPrinting for the first time, you can skip this section, because server certificate validation will be turned on by default.

After you turn on server certificate validation, if the corresponding Qlik Sense root.cer certificate files were not properly installed on Qlik NPrinting Server and each Qlik NPrinting Engine machine, any configured task that uses a Qlik Sense connection will fail when executed.

Do the following:

  1. Log into Qlik NPrinting web console as an Administrator.

  2. In the top menu, go to Admin > Settings >Task.

  3. In the Security section, click the Apply Qlik Sense server certificate validation checkbox.

  4. Click the Update button.

Once this feature is turned on, a message will appear at the bottom of every Qlik Sense connection page and Qlik Sense hub destination setup page.

Sense hub destination setup page with note at the bottom explaining that server certificate validation will be applied.

Dialog box of the Sense hub destination setup page with note at the bottom explaining that server certificate validation will be applied.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!