-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fix crash in x509_crl when certificate issuer is specified #441
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bugfixes: | ||
- "x509_crl - fix crash when ``issuer`` for a revoked certificate is specified (https://github.com/ansible-collections/community.crypto/pull/441)." |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,11 @@ | |
['commonName', 'CRL'], | ||
['commonName', 'Test'], | ||
] | ||
|
||
- name: Validate CRL 3 info | ||
assert: | ||
that: | ||
- crl_3.revoked_certificates == crl_3_info.revoked_certificates | ||
- crl_3.revoked_certificates[0].issuer == [ | ||
"DNS:ca.example.org", | ||
] | ||
Comment on lines
+110
to
+112
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was surprised that this plain scalar worked multi-line without But it appears that validator is wrong; and it clearly works in Ansible regardless, but you may want to change it if only for consistency with the other asserts in the file. Or not 🤷 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the YAML definition this should be fine: https://yaml.org/spec/1.2.2/#plain-style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entry['issuer']
is already transformed in line 530.