Posted on 07-01-2022 05:55 AM
Hello,
i´ve check the docu for the old and the new API and didn´t find anything. Doesn anyone know a possiblity to get the push certificate information via API?
I want to check the certificate state monthly on different Instances via API automatically.
Is there a other solution to check the certificate state via API?
Best Stephan
Posted on 07-01-2022 07:57 AM
There's no endpoint for the Push Certs, but if you have an alert on one of your instances stating that the cert will expire soon, you can get that from the Notifications endpoint. I use a script that checks for notifications once a week and informs me if there are any.
Posted on 07-03-2022 12:18 PM
hey, is this script public or can you provide more details on your script?
thanks
Posted on 07-04-2022 07:57 AM
https://github.com/robjschroeder/Jamf-API-Scripts/blob/main/api-GetJPNotifications.sh
I do have that one, I think that is an older one that I’ve used, not sure if the “days” portion is updated. But it will give you your notifications. When I get to my updated one I use in production, I can share it with you as well.