Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Res
Explorer

Add a certificate to local user via Management API Web Services

Hello,

I'm trying to add a certificate (registration key) to a user via the management api.

But everytime i get an error.

 

This is my request body

 

{
 "certificates" :  {
       "add" : {
           "registration-key":{}
       }
   },
 "uid" : "<removed>",
 "details-level" : "full"
}

 

As a response i get:

 

{
	"code": "generic_error",
	"message": ""
}

 

How do a add a certificate to a local checkpoint user?

Thanks in advance!!

0 Kudos
2 Replies
Lesley
Leader Leader
Leader

Check this out:

https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-user-a-certificate-via-API/m-p/10218...

I assume you also seen api ref guide?

https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-user~v1.9.1%20

Maybe the order is wrong first create cert and then reg key?

-------
If you like this post please give a thumbs up(kudo)! 🙂
Res
Explorer

Hey Lesley,

thank you for your answer. 
Via Smart Console CLI and mgmt_cli i can add a registration-key to a user

"set user name <Username> certificates.add.registration-key.expiration-days 14" works and a simular command on mgmt_cli also works. 
But via Web services I get the error, and I would like to use web services. Maybe my syntax is wrong, but thats what i have seen everywhere. 

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events