Skip to content

Commit

Permalink
Merge pull request #89 from xbabka01/certificate_serial
Browse files Browse the repository at this point in the history
Fixed certificate serial number test (avast/retdec#955)
  • Loading branch information
metthal authored Jun 4, 2021
2 parents 1ac40cc + 0d2322b commit 8c33e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/fileinfo/features/certificates-info/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_certificates(self):

assert first_sig['allCertificates'][0]['subject'] == "CN=Symantec Time Stamping Services CA - G2,O=Symantec Corporation,C=US"
assert first_sig['allCertificates'][0]['issuer'] == "CN=Thawte Timestamping CA,OU=Thawte Certification,O=Thawte,L=Durbanville,ST=Western Cape,C=ZA"
assert first_sig['allCertificates'][0]['serialNumber'] == "7E93EBFB7CC64E59EA4B9A77D406FC3B"
assert first_sig['allCertificates'][0]['serialNumber'] == "7e:93:eb:fb:7c:c6:4e:59:ea:4b:9a:77:d4:06:fc:3b"
assert first_sig['allCertificates'][0]['publicKeyAlgorithm'] == "rsaEncryption"
assert first_sig['allCertificates'][0]['signatureAlgorithm'] == "sha1WithRSAEncryption"
assert first_sig['allCertificates'][0]['validSince'] == "Dec 21 00:00:00 2012 GMT"
Expand Down Expand Up @@ -134,7 +134,7 @@ def test_certificates(self):

assert first_sig['allCertificates'][0]['subject'] == "CN=Symantec Time Stamping Services CA - G2,O=Symantec Corporation,C=US"
assert first_sig['allCertificates'][0]['issuer'] == "CN=Thawte Timestamping CA,OU=Thawte Certification,O=Thawte,L=Durbanville,ST=Western Cape,C=ZA"
assert first_sig['allCertificates'][0]['serialNumber'] == "7E93EBFB7CC64E59EA4B9A77D406FC3B"
assert first_sig['allCertificates'][0]['serialNumber'] == "7e:93:eb:fb:7c:c6:4e:59:ea:4b:9a:77:d4:06:fc:3b"
assert first_sig['allCertificates'][0]['publicKeyAlgorithm'] == "rsaEncryption"
assert first_sig['allCertificates'][0]['signatureAlgorithm'] == "sha1WithRSAEncryption"
assert first_sig['allCertificates'][0]['validSince'] == "Dec 21 00:00:00 2012 GMT"
Expand Down

0 comments on commit 8c33e87

Please sign in to comment.