- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Add a certificate to local user via Management API...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check this out:
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)! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
