-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for cert output to catch multiword values. (#1316)
- Loading branch information
1 parent
5ce9c9f
commit 8890b6a
Showing
5 changed files
with
174 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
79 changes: 79 additions & 0 deletions
79
tests/cisco_ios/show_crypto_pki_certificates/cisco_ios_show_crypto_pki_certificates_2.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
Certificate | ||
Status: Available | ||
Certificate Serial Number (hex): 1234567890ABCDEFGHIJK | ||
Certificate Usage: General Purpose | ||
Issuer: | ||
[email protected] | ||
cn=Apparently These Can Have Spaces In Them | ||
ou=one two three | ||
o=one two three | ||
l=one two three | ||
st=one two three | ||
c=one two three | ||
Subject: | ||
Name: ROUTERNAME.domain.com | ||
Serial Number: 1234ABCD | ||
hostname=ROUTERNAME.domain.com | ||
serialNumber=1234ABCD | ||
CRL Distribution Points: | ||
http://cdp.domain.com/crl/issuing-ca.crl | ||
Validity Date: | ||
start date: 09:17:52 UTC Jun 22 2022 | ||
end date: 09:17:52 UTC Jun 22 2023 | ||
renew date: 09:19:52 UTC Apr 10 2023 | ||
Associated Trustpoints: caserver.domain.com | ||
Storage: nvram:certfile.cer | ||
|
||
CA Certificate | ||
Status: Available | ||
Certificate Serial Number (hex): ABCDEFGHIJK1234567890 | ||
Certificate Usage: Signature | ||
Issuer: | ||
[email protected] | ||
cn=one two three | ||
ou=one two three | ||
o=one two three | ||
l=one two three | ||
st=one two three | ||
c=one two three | ||
Subject: | ||
[email protected] | ||
cn=one two three | ||
ou=one two three | ||
o=one two three | ||
l=one two three | ||
st=one two three | ||
c=one two three | ||
CRL Distribution Points: | ||
http://cdp.domain.com/crl/issuing-ca.crl | ||
Validity Date: | ||
start date: 00:00:00 UTC Nov 9 2018 | ||
end date: 00:00:00 UTC Nov 9 2028 | ||
Associated Trustpoints: caserver.domain.com | ||
Storage: nvram:certfile.cer | ||
|
||
CA Certificate | ||
Status: Available | ||
Certificate Serial Number (hex): 12345ABCDEFGHIJK67890 | ||
Certificate Usage: Signature | ||
Issuer: | ||
[email protected] | ||
cn=one two three | ||
ou=one two three | ||
o=one two three | ||
l=one two three | ||
st=one two three | ||
c=one two three | ||
Subject: | ||
[email protected] | ||
cn=one two three | ||
ou=one two three | ||
o=one two three | ||
l=one two three | ||
st=one two three | ||
c=one two three | ||
Validity Date: | ||
start date: 00:00:00 UTC Nov 5 2018 | ||
end date: 00:00:00 UTC Nov 5 2038 | ||
Associated Trustpoints: ROOT-CA | ||
Storage: nvram:certfile.cer |
83 changes: 83 additions & 0 deletions
83
tests/cisco_ios/show_crypto_pki_certificates/cisco_ios_show_crypto_pki_certificates_2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
--- | ||
parsed_sample: | ||
- certificate_type: "Certificate" | ||
status: "Available" | ||
serial_number: "1234567890ABCDEFGHIJK" | ||
certificate_usage: "General Purpose" | ||
issuer_e: "[email protected]" | ||
issuer_cn: "Apparently These Can Have Spaces In Them" | ||
issuer_ou: "one two three" | ||
issuer_o: "one two three" | ||
issuer_l: "one two three" | ||
issuer_st: "one two three" | ||
issuer_c: "one two three" | ||
subject_e: "" | ||
subject_cn: "" | ||
subject_ou: "" | ||
subject_o: "" | ||
subject_l: "" | ||
subject_st: "" | ||
subject_c: "" | ||
subject_name: "ROUTERNAME.domain.com" | ||
subject_serial_number: "1234ABCD" | ||
subject_hostname: "ROUTERNAME.domain.com" | ||
crl_distribution_point: "http://cdp.domain.com/crl/issuing-ca.crl" | ||
start_date: "09:17:52 UTC Jun 22 2022" | ||
end_date: "09:17:52 UTC Jun 22 2023" | ||
renew_date: "09:19:52 UTC Apr 10 2023" | ||
associated_trustpoints: "caserver.domain.com" | ||
storage: "nvram:certfile.cer" | ||
- certificate_type: "CA Certificate" | ||
status: "Available" | ||
serial_number: "ABCDEFGHIJK1234567890" | ||
certificate_usage: "Signature" | ||
issuer_e: "[email protected]" | ||
issuer_cn: "one two three" | ||
issuer_ou: "one two three" | ||
issuer_o: "one two three" | ||
issuer_l: "one two three" | ||
issuer_st: "one two three" | ||
issuer_c: "one two three" | ||
subject_e: "[email protected]" | ||
subject_cn: "one two three" | ||
subject_ou: "one two three" | ||
subject_o: "one two three" | ||
subject_l: "one two three" | ||
subject_st: "one two three" | ||
subject_c: "one two three" | ||
subject_name: "" | ||
subject_serial_number: "" | ||
subject_hostname: "" | ||
crl_distribution_point: "http://cdp.domain.com/crl/issuing-ca.crl" | ||
start_date: "00:00:00 UTC Nov 9 2018" | ||
end_date: "00:00:00 UTC Nov 9 2028" | ||
renew_date: "" | ||
associated_trustpoints: "caserver.domain.com" | ||
storage: "nvram:certfile.cer" | ||
- certificate_type: "CA Certificate" | ||
status: "Available" | ||
serial_number: "12345ABCDEFGHIJK67890" | ||
certificate_usage: "Signature" | ||
issuer_e: "[email protected]" | ||
issuer_cn: "one two three" | ||
issuer_ou: "one two three" | ||
issuer_o: "one two three" | ||
issuer_l: "one two three" | ||
issuer_st: "one two three" | ||
issuer_c: "one two three" | ||
subject_e: "[email protected]" | ||
subject_cn: "one two three" | ||
subject_ou: "one two three" | ||
subject_o: "one two three" | ||
subject_l: "one two three" | ||
subject_st: "one two three" | ||
subject_c: "one two three" | ||
subject_name: "" | ||
subject_serial_number: "" | ||
subject_hostname: "" | ||
crl_distribution_point: "" | ||
start_date: "00:00:00 UTC Nov 5 2018" | ||
end_date: "00:00:00 UTC Nov 5 2038" | ||
renew_date: "" | ||
associated_trustpoints: "ROOT-CA" | ||
storage: "nvram:certfile.cer" |