Project

Profile

Help

Issue #3319

closed

Certificates used in unit testing are expired

Added by dalley about 6 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.15.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 32
Quarter:

Description

Jenkins test runs now fail due to certificate validation failures. The certificates expired on January 25, 2018.

FAIL: test_validate_certificate_pem_with_ca_chain (test_repo_cert_utils.TestCertVerify)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/unittest-pulp-pr/node-type/f25-np/pulp/repoauth/test/test_repo_cert_utils.py", line 448, in test_validate_certificate_pem_with_ca_chain
    self.assertTrue(self.utils.validate_certificate_pem(test_cert_pem, ca_chain_pems))
AssertionError: False is not true
-------------------- >> begin captured logging << --------------------
pulp.repoauth.repo_cert_utils: INFO: Cert verification failed against 3 ca cert(s)
Current Time: <Thu Jan 25 19:27:03 2018>
Certificate to verify: 
    subject=</CN=Test Common Name>, issuer=</CN=Sub CA Common Name>, subject.as_hash=<717609868>, issuer.as_hash=<2829237384>, fingerprint=<D519BF4D2544AB3058AF1F44D3D074F2>, serial=<4>, version=<0>, check_ca=<0>, notBefore=<Jan 26 18:25:17 2015 GMT>, notAfter=<Jan 25 18:25:17 2018 GMT>
Using a CA Chain with 3 cert(s)
    CA: subject=</CN=Root CA Common Name>, issuer=</CN=Root CA Common Name>, subject.as_hash=<2268185431>, issuer.as_hash=<2268185431>, fingerprint=<31BE5F7B00CC35F65CBA690B9E3218EA>, serial=<16780789415258943976>, version=<2>, check_ca=<1>, notBefore=<Jan 26 18:25:16 2015 GMT>, notAfter=<Jan 25 18:25:16 2018 GMT>
    CA: subject=</CN=Sub CA Common Name>, issuer=</CN=Root CA Common Name>, subject.as_hash=<2829237384>, issuer.as_hash=<2268185431>, fingerprint=<0A13EB878B6EB09C0AC19C1BAAC9FA93>, serial=<4>, version=<2>, check_ca=<1>, notBefore=<Jan 26 18:25:17 2015 GMT>, notAfter=<Jan 25 18:25:17 2018 GMT>
    CA: subject=</CN=Revoked CA Common Name>, issuer=</CN=Root CA Common Name>, subject.as_hash=<1623845751>, issuer.as_hash=<2268185431>, fingerprint=<739709525FDC6895282F4D67A687D686>, serial=<5>, version=<2>, check_ca=<1>, notBefore=<Jan 26 18:25:17 2015 GMT>, notAfter=<Jan 25 18:25:17 2018 GMT>
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_validate_certificate_pem_with_ca_chain_and_valid_cert (test_repo_cert_utils.TestCertVerify)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/unittest-pulp-pr/node-type/f25-np/pulp/repoauth/test/test_repo_cert_utils.py", line 468, in test_validate_certificate_pem_with_ca_chain_and_valid_cert
    self.assertTrue(self.utils.validate_certificate_pem(test_cert_pem, ca_chain_pems))
AssertionError: False is not true
-------------------- >> begin captured logging << --------------------
pulp.repoauth.repo_cert_utils: INFO: Cert verification failed against 3 ca cert(s)
Current Time: <Thu Jan 25 19:27:03 2018>
Certificate to verify: 
    subject=</CN=Test Common Name>, issuer=</CN=Sub CA Common Name>, subject.as_hash=<717609868>, issuer.as_hash=<2829237384>, fingerprint=<D519BF4D2544AB3058AF1F44D3D074F2>, serial=<4>, version=<0>, check_ca=<0>, notBefore=<Jan 26 18:25:17 2015 GMT>, notAfter=<Jan 25 18:25:17 2018 GMT>
Using a CA Chain with 3 cert(s)
    CA: subject=</CN=Root CA Common Name>, issuer=</CN=Root CA Common Name>, subject.as_hash=<2268185431>, issuer.as_hash=<2268185431>, fingerprint=<31BE5F7B00CC35F65CBA690B9E3218EA>, serial=<16780789415258943976>, version=<2>, check_ca=<1>, notBefore=<Jan 26 18:25:16 2015 GMT>, notAfter=<Jan 25 18:25:16 2018 GMT>
    CA: subject=</CN=Sub CA Common Name>, issuer=</CN=Root CA Common Name>, subject.as_hash=<2829237384>, issuer.as_hash=<2268185431>, fingerprint=<0A13EB878B6EB09C0AC19C1BAAC9FA93>, serial=<4>, version=<2>, check_ca=<1>, notBefore=<Jan 26 18:25:17 2015 GMT>, notAfter=<Jan 25 18:25:17 2018 GMT>
    CA: subject=</CN=Revoked CA Common Name>, issuer=</CN=Root CA Common Name>, subject.as_hash=<1623845751>, issuer.as_hash=<2268185431>, fingerprint=<739709525FDC6895282F4D67A687D686>, serial=<5>, version=<2>, check_ca=<1>, notBefore=<Jan 26 18:25:17 2015 GMT>, notAfter=<Jan 25 18:25:17 2018 GMT>
--------------------- >> end captured logging << ---------------------
Actions #1

Updated by dalley about 6 years ago

  • Related to Issue #2733: Pulp's test certs are bad and do not conform to candlepin's entitlement cert format added
Actions #2

Updated by dalley about 6 years ago

  • Status changed from NEW to POST
  • Assignee set to dalley
Actions #3

Updated by dalley about 6 years ago

  • Triaged changed from No to Yes

Added by dalley about 6 years ago

Revision 779e0b94 | View on GitHub

Regenerated expired test certificates

closes #3319 https://pulp.plan.io/issues/3319

Actions #4

Updated by dalley about 6 years ago

  • Related to deleted (Issue #2733: Pulp's test certs are bad and do not conform to candlepin's entitlement cert format)
Actions #6

Updated by dalley about 6 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by dalley about 6 years ago

  • Sprint/Milestone set to 53
Actions #8

Updated by jortel@redhat.com about 6 years ago

  • Sprint/Milestone changed from 53 to 54
Actions #9

Updated by bmbouter about 6 years ago

  • Platform Release set to 2.15.2

Added by dalley about 6 years ago

Revision 48419ff1 | View on GitHub

Regenerated expired test certificates

closes #3319 https://pulp.plan.io/issues/3319

(cherry picked from commit 779e0b944a39d2a70fd9fdf85809c6a84a3c047d)

Actions #11

Updated by daviddavis about 6 years ago

  • Status changed from MODIFIED to 5
Actions #12

Updated by bmbouter about 6 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #13

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 32
Actions #14

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (54)
Actions #15

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF