Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dec 11, 2023 10:20:39 AM
Aug 25, 2020 4:33:20 AM
There may be several different symptoms associated with a need to regenerate and redistribute certificates;
This article does not cover the use of a 3rd party certificate for end user Hub access, but the certificates used for communication between the Sense services. For recommendation on how to use a 3rd party certificate for end user access, see How to: Change the certificate used by the Qlik Sense Proxy to a custom third party certificate
Do not perform the below steps in a production environment, without first doing a backup of the existing certificates. Certificates are being used to encrypt information in the QRS database, such as connection strings. By recreating certificates, you may lose information in your current setup.
By removing the old/bad certificates, and restarting the Qlik Sense Repository Service (QRS), the correct certificates can be recreated by the service. If trying to remove certs, only the removal steps need to be followed.
The instructions are to be carried out on the Qlik Sense Central Node. In the case of a multi-node deployment, verify which node is the central node before continuing.
If the current central node role is held by the failover, you need to fail the role back to the original central node by shutting down all the nodes (this implies downtime). Then start the original central node, reissue the certificates on it with this article, and when the central node is working apply the article Rim node not communicating with central node - certificates not installed correctly on each Rim node.
Test all data connections after the certificates are regenerated. It is likely that data connections with passwords will fail. This is because passwords are saved in the repository database with encryption. That encryption is based on a hash from the certificates. When the Qlik Sense signed certificates are regenerated, this hash is no longer valid, and the saved data connection passwords can not be decrypted. The customer must re-enter the passwords in each data connection and save. See article: Repository System Log Shows Error "Not possible to decrypt encrypted string in database"
There is no need to perform a full reinstall to propagate new certificates. Certificates are created by the QRS automatically if not found during the service startup process.
The steps in this section must be performed after recreating certificates as described above.
Execute following query against SenseServices database:
DROP TABLE IF EXISTS hybrid_deployment_service.mt_doc_asymmetrickeysencrypt CASCADE;
Navigate to Deployments page of Multi-cloud Setup Console (MSC).
Delete and re-add any existing deployments by following the steps mentioned in Distributing apps from Qlik Sense Enterprise on Windows to Qlik Sense Enterprise SaaS and Distributing apps to Qlik Sense Enterprise on Kubernetes.
After the certificates have been recreated and then redistributed to all of the rim nodes, the node.js certificates stored locally on the central and all rim nodes also need to be recreated. Follow the below steps to perform this action:
Test all data connections after the certificates are rebuilt. It is likely that data connections with passwords will fail. This is because passwords are saved in the repository database with encryption. That encryption is based on a hash from the certs. When the Qlik Sense self-signed cert is rebuilt, this hash is no longer valid, and so the saved data connection passwords will fail. The customer must re-enter the passwords in each data connection and save. See article: Repository System Log Shows Error "Not possible to decrypt encrypted string in database"
Notice if using an official Signed Server Certificate from a trusted Certificate Authority
The certificate information will also be in the QMC, under Proxies, with the Certificate thumbprint listed. If trying to merely remove all aspects of certs, this will need to be removed as well.
If the above does not work, see Qlik Sense Enterprise Hub and Qlik Management Console (QMC) down - bootstrap fails with "Newly creat...
thanks @Bjorn_Wedbratt , another good tips
Hi @Bjorn_Wedbratt ,
First of all, thanks for these instructions.
I've noticed that the instructions in the text description add the snap-ins for both Current User and Local Computer, but the video instructions only uses certificates from the Current User section. Is this just enough? Are the certificates in the Local Computer section just copies of the ones in the Current User section that are copied during the certificate regeneration process?
Please advise - also, please tag my user name so that I get a msg when you reply.
Cheers,
++José
Hello @diagonjope
Let me look into this for you. I will get back to you once I received clarification and gave this a test.
All the best,
Sonja
Hello @diagonjope
We have confirmed that you're required to delete the certificates in both stores. Current User and Local Computer.
All the best,
Sonja
For stopping services during bootstrap, should the Qlik Sense Service Dispatcher be stopped or continue to run?
Thank you!
Hello @Purushothaman
The note we have regarding the Dispatcher is: If the script doesn't get to "Bootstrap mode has terminated. Press ENTER to exit.." and gets stuck at "[INFO] Entering main startup phase.." start the "Qlik Sense dispatcher service" and it will get to the end.
I hope this helps!
Otherwise, the service should be stopped.
All the best,
Sonja
In my qlik site, the issued by computer of the root certificate is not one of the central node candidates, i assume at some point it was and configured out.
Am I safe to perform these steps on the current active central node? or do i need to re-elevate the old computer back as a failover candidate and failover to it?
@Sonja_Bauernfeind - If you can please take a look at my last post, greatly appreciated.
Hello @stevejoyce
There is currently not enough information available for Qlik to be able to respond accurately.
Please gather the following information and post directly in the Deployment and Management forum, where our active support agents and Qlik peers can assist:
All the best,
Sonja