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

Allow validation of bundled certificates #33577

Merged
merged 1 commit into from May 27, 2016
Merged

Allow validation of bundled certificates #33577

merged 1 commit into from May 27, 2016

Conversation

akissa
Copy link
Contributor

@akissa akissa commented May 27, 2016

Adds the ability to validate bundled certificates using the x509 module

Using the command.

salt-call x509.verify_signature /etc/pki/baruwa/certs/scanner.lab.topdog-software.com.pem signing_pub_key=/etc/pki/certbot/certs/certbot-staging-ca.pem

/etc/pki/baruwa/certs/scanner.lab.topdog-software.com.pem contains the certificate and the CA certificate appended for use with Nginx

Previous Behavior

It was not possible to validate a bundled certificate, you would get the error

Passed invalid arguments: PEM does not contain a single entry of type

New Behavior

It is now possible to validate a bundled certificate, the first certificate in
the bundle is extracted and used in the check.

Tests written?

No

Currently it is not possible to validate bundled
certificates as the get_pem_entry function expects
only one certificate in the file.

This change allows for the first certificate in the
file to be extracted and validated.

Currently it is not possible to validate bundled
certificates as the get_pem_entry function expects
only one certificate in the file.

This change allows for the first certificate in the
file to be extracted and validated.
@cachedout cachedout merged commit 1f3f5a8 into saltstack:develop May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants