Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable use of API certificate #68

Open
grahampugh opened this issue Jul 20, 2022 · 0 comments
Open

Enable use of API certificate #68

grahampugh opened this issue Jul 20, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@grahampugh
Copy link
Owner

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")]) 
@grahampugh grahampugh added the enhancement New feature or request label Jul 20, 2022
@grahampugh grahampugh self-assigned this Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant