Installing A SSL Certificate To Qlik Sense Enterprise On Windows Server 2012 R2 - Withdave
Installing A SSL Certificate To Qlik Sense Enterprise On Windows Server 2012 R2 - Withdave
Installing A SSL Certificate To Qlik Sense Enterprise On Windows Server 2012 R2 - Withdave
WITHDAVE
A blog for my learnings
J A N U A R Y 3 0 , 2 0 1 7 B Y D AV E
Updated on 22/12/2017 to add two other ways of generating a CSR (see below).
In this post I’m going to look at how quick and easy (and cheap) it is to procure and
install a SSL certificate on your Qlik Sense deployment. This assumes you are starting
with only the self signed certificates, and that you want to use a certificate generated
by a signing authority for use on an externally facing site.
I’m using Qlik Sense Enterprise 3.1 with a single-node deployment using the
default settings
You have a choice of verification methods – I chose to use DNS by adding a
CNAME (pointer) to my chosen domain, and managed this through a linux DNS
host. You can also verify through email or http (placement of a file)
I’ve used a basic certificate from PositiveSSL that offers only domain validation
(DV). Certificates offering greater levels of protection and assurance are also
available
The server is running Windows Server 2012 R2 with IIS 8, which is up-to-date with
the latest updates at time of writing (January 2017)
On a clean installation of Qlik Sense Enterprise, you’ll note that the domain fails SSL
validation in most browsers. Why? Because the certificate is one that has been
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 1/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
generated by your server, and not by a “trusted” certificate authority. Have a read of this
page about Certificate Authorities if you’re after further detail.
So, let’s have a look at what’s installed on the server! You can get to the right place by
diving straight into IIS, or checking the certificate manager (a snap in that’s part of the
MMC).
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 2/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
Finding the certificate manager in the start menu is quick and easy
Both of these elements are easily accessible through the start menu, so we’ll open the
Certificate manager to see what we’re currently working with. On a new install, this will
likely have a single certificate which corresponds to your machine’s host name – in my
case it also includes an NVIDIA certificate that has been installed by some drivers on
the system (we can ignore this).
The certificate manager lets you explore which certificates are installed on your system
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 3/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
The SERVER certificate is a self-signed system certificate (from SERVER-CA – aka the
server itself) to sign our connections to Sense. As it’s not from a trusted authority, it’s
clearly shown as being untrusted when we visit the site in chrome.
To add a new, trusted certificate to the server we need to follow a few steps:
1) Generate CSR (certificate signing request – this comes from IIS and details specifics
of the system and requester)
2) Purchase a certificate from a trusted authority
3) Pass the CSR generated by your server to the authority
4) Validate that you control the domain in question (through email or DNS)
5) Download the certificate generated by the authority and add it to the certificate
store on the machine
6) Update Qlik Sense Enterprise to use the newly added certificate
Once you’ve updated Qlik Sense Enterprise, the proxy will restart and you should be
able to use the new certificate immediately. Note that you will likely need to end your
current browser session to correctly validate the updated certificate.
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 4/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
By heading to the IIS Manager and looking at the Server Certificates tab, we can
generate a CSR. The common name should match the domain in question – in the
below example, our Qlik Sense Hub would be accessible from
https://my.domain.com/Hub/. The certificate will be valid for only this domain with this
configuration, although it is possible to request multi-domain and wildcard certificates
(these will cost more).
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 5/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
You will also need to specify a cryptographic service provider and bit length. Generally,
longer bit lengths are more secure – but may impact performance. The Certificate
Authority may specify which bit length they require.
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 6/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
CSR Service Provider and Strength need to be supported by your Certificate Authority
You can then save the CSR file to disk – this will contain a hashed version of the
information you’ve entered and a few other details.
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 7/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 8/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
Once you’ve validated domain control with the Certificate Authority, you can download
the Certificate (for IIS/Tomcat this should have a .cer file extension – if you have .crt or
other extensions then you may have the linux version and will need to convert it for
use).
Go back to IIS and select the “Complete Certificate Request” option (as seen in step 1).
This will allow you to attach the .cer file, and will ask you which certificate store to add
the certificate to. Adding it to the Personal store works fine, and you should now be able
to see it on the IIS and Windows certificate pages.
The Certificate detail view lets you get to the Thumbprint on the Detail tab
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 9/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
The thumbprint is a list of two-letter words, as shown below – you will need to copy
this…
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 10/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
…and paste it into the QMC in “Proxies > Central > Security > SSL browser certificate
thumbprint”, then Apply.
Once you’ve cleared your current session, you should be good to go – no more SSL
errors! I’d recommend not removing any existing certificates unless you have good
reason, as it’s not a quick fix to correct certificate errors on a QS install.
For the official Qlik-side guide, the following is still relevant: Qlik Sense 1.1 Help –
Changing proxy certificate
If you’re able to install third party software onto the box, then you can generate a CSR
through that software and import the resulting certificates via Microsoft Management
Console (mmc).
OpenSSL – a comprehensive tool that’s primarily built for Linux, although some in the
community maintain binaries for windows. Requires command line inputs
DigiCert Util – a very user friendly GUI that doesn’t require any command line inputs
Q L I K S E N S E , W I N D OWS
C E R T I F I C AT E S , H T T P S , I I S , Q L I K S E N S E , S S L , W I N D O W S S E R V E R
would that conflict between IIS and Qlik Sense server? the port will be over ride ?
dave
D E C E M B E R 2 2 , 2 0 1 7 AT 6 : 2 7 P M
You don’t have to be running a site in IIS – it’s just an easy way of generating a CSR if you
can’t install OpenSSL or another utility onto the server.
If you’re not keen on using IIS then you can use a third party utility to generate the CSR
and simply import the certificate into Windows. I’ve added two options for doing this into
the post.
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 12/13
23/11/22, 08:27 Installing a SSL certificate to Qlik Sense Enterprise on Windows Server 2012 R2 - withDave
https://withdave.com/2017/01/installing-an-ssl-certificate-to-qlik-sense-enterprise-on-windows-server-2012-r2/ 13/13