grahampugh / jamf-upload

Scripts for uploading packages to Jamf Cloud
Apache License 2.0
149 stars 37 forks source link

Enable use of API certificate #68

Open grahampugh opened 2 years ago

grahampugh commented 2 years ago

Issue raised in MacAdmins Slack DM by Kornel:

If using a certificate for authenticating via API, so we not only need to provide API credentials in Autopkg prefs file but also point to a local .pem file.

This should be possible to add as a curl parameter, like this:

        if cert:
            curl_cmd.extend(["--cert", self.env.get("CLIENT_CERT_PATH")])