Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sri_c003
Partner - Creator II
Partner - Creator II

Qlik Sense Cluster - Distribute certificate via QRS API

Installation: Cluster - Central with 1 Rim

Version: April 2020 P5

 

We are trying to add and distribute certificate from Central to RIM via QRS API call.

API Reference: https://help.qlik.com/en-US/sense-developer/April2020/Subsystems/RepositoryServiceAPI/Content/Sense_...

The API detail says "Distribute certificates from the Qlik Sense Repository Service (QRS) on the central node in the Qlik Sense site to the node identified by {servernodeconfigurationid}.".

The postman call (run on the Central node) runs and returns with 200 OK and the certificate password in response.

sri_c003_1-1617135216246.png

But when I check on the nodes, it still shows up as "certificate has not been installed".

sri_c003_0-1617135057999.png

This is kind of confusing since the API says it will distribute certificate wherein in reality it is not. I tried restarting Qlik services on both Central and Rim nodes after running this API, but the result still stays the same - cert not installed.

Am I missing something here? Any help here on how to distribute certs from Central to Rim via QRS API would be greatly appreciated.

Labels (2)
1 Solution

Accepted Solutions
Bastien_Laugiero

Hi, 

So, the API you referred to in your post will only give you the password needed to distribute the certificate on the rim node. 

Then you will need to install the certificate using this call or alternatively sending a web request.

See https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sen...

In general, I would still recommend you use the QlikCLI and potentially re-work your items with it. 

The QlikCLI also uses the QRS API but in a more user-friendly manner as often one operation requires multiple QRS API Calls. 

You can also check the QlikCLI code to see which QRS API calls are being used to proceed with a specific operation. This is available in the resource folder. 

Hope this helps!

Bastien Laugiero
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.

View solution in original post

4 Replies
Bastien_Laugiero

Hello!

I would suggest you to use Qlik-Cli for that purpose which leverage the Qlik Sense API. It's a PowerShell module that provides a command line interface for managing a Qlik Sense environment

Here is the link: https://developer.qlik.com/garden/58b83eb68bc22ec70e8788f3

You may want to look at https://github.com/ahaydon/Qlik-Cli-Windows/blob/master/docs/Register-QlikNode.md

Hope this helps!

 

Bastien Laugiero
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
sri_c003
Partner - Creator II
Partner - Creator II
Author

Thank you @Bastien_Laugiero. We were able to distribute the certs via Qlik-Cli.

We are trying to explore the Qlik QRS API approach since we do all the other items like node configurations via QRS and feel it would be nice to have a uniform approach to do all the items.

Items we were able to do via QRS API:

  1. Add Rim node
  2. Configure Rim node
  3. Update proxies to include the Rim node

Only item pending:

  1. Distributing certs to the newly added Rim node
Bastien_Laugiero

Hi, 

So, the API you referred to in your post will only give you the password needed to distribute the certificate on the rim node. 

Then you will need to install the certificate using this call or alternatively sending a web request.

See https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sen...

In general, I would still recommend you use the QlikCLI and potentially re-work your items with it. 

The QlikCLI also uses the QRS API but in a more user-friendly manner as often one operation requires multiple QRS API Calls. 

You can also check the QlikCLI code to see which QRS API calls are being used to proceed with a specific operation. This is available in the resource folder. 

Hope this helps!

Bastien Laugiero
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
sri_c003
Partner - Creator II
Partner - Creator II
Author

@Bastien_Laugiero 

Sure. Shall try that way then. Thank you.