Scenarios for when Qlik NPrinting Connection verification fails at "Installed certificates are valid to connect to Qlik Sense"
- A new connection to Qlik Sense for a new NPrinting installation fails
- A new connection from an existing NPrinting installation to a new Qlik Sense server instance fails
- NPrinting cannot connect to another Qlik Sense server instance
Logs may register similar to the following lines:
! Please NOTE: Due to a limitation on Qlik Sense certificates, Qlik NPrinting April 2019 and older can only connect to one Qlik Sense installation at a time.
Error: Installed certificates are valid to connect to Qlik Sense
PerformDiagnosis found a problem. ERROR: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. --->
See the Qlik Online Help: Deploying Qlik NPrinting > Planning your deployment > Architecture > Supported and unsupported configurations Environment:
- Qlik NPrinting April 2019 and older
- Qlik NPrinting June 2019 and newer
The certificate installer was run with another administrative account than the Qlik NPrinting service account.
Connection cannot be established if the wrong certificate is installed.
Connection cannot be established if multiple certificates are installed on older than June 2019 releases.
Connection cannot be established if full TCP traffic (Including TLS traffic) on port 4242 is not allowed between the two servers.
For error I. above, verify that certificates were correctly imported whiled logged in to Windows with the Qlik NPrinting service account.
The certificates should not
be imported using the MMC, but using the certificate installer tool that is located by default under C:\Program Files\NPrintingServer\Tools\QmcCertificatesInstaller Note:
Prior to using the installer tool, make sure there are no other certificates present under C:\Program Files\NPrintingServer\Settings\SenseCertificates.
Otherwise, rename the folder and create a new SenseCertficates folder under this location, then re-import the certificates using the cert installer tool.
For error II. above, ensure that communication between Qlik NPrinting and Qlik Sense on port 4242 has been opened for all TCP traffic. If there are application layer firewalls in the environment TLS communication needs to be fully open. A symptom of this would be no TLS negotiation packets arriving on the Qlik Sense server or NPrinting Server. This can be validated with a network capture which can be obtain with sniffing tools such as Wireshark
See the Qlik Online Help: Deploying Qlik NPrinting > Qlik NPrinting installation > Connecting Qlik NPrinting with Qlik Sense
For and installation guide, refer to Connecting Qlik NPrinting with Qlik Sense
.For a workaround to point to a different instance of Qlik Sense: How Point to a Different Instance of QlikSense from NPrinting 17.x
If connecting to multiple Qlik Sense environments starting on NPrinting June 2019 release, see Connect NPrinting Server to Multiple Qlik Sense servers