Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-49882

RHEL10 Certificate status not set to EXPIRED after set expiry time

    • Yes
    • None
    • rhel-sst-idm-cs
    • ssg_idm
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Certificate System
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Testing certificate pruning for complete request

      Please provide the package NVR for which bug is seen:

      idm-jss-tomcat-5.5.0-2.el10.x86_64.rpm
      idm-pki-base-11.5.2-1.el10.noarch.rpm
      idm-ldapjdk-5.5.0-2.el10.noarch.rpm
      idm-jss-5.5.0-2.el10.x86_64.rpm
      idm-pki-kra-11.5.2-1.el10.noarch.rpm
      idm-pki-ca-11.5.2-1.el10.noarch.rpm
      idm-pki-tools-11.5.2-1.el10.x86_64.rpm
      idm-pki-java-11.5.2-1.el10.noarch.rpm
      idm-pki-server-11.5.2-1.el10.noarch.rpm

      How reproducible:

      Always

      Steps to reproduce

      1. Issue a certificate against caUserCert profile modify profile to expire a cert in minute and issued a cert

      • Set the cert validity for 1 minute
        2. Wait for 1 minute to expire a certificate
        3. Start the pruning job with 0 minute retention time

      Expected results

      1. Certificate should be created successfully validity of 1 minute
      2. ca-job-start pruning command should successfully removed the certificate and its corresponding request

      Actual results

      After waiting beyond the 1 minute validity period cert status not changed to expired.
      Still shows as VALID

      1. date
        Fri Jul 19 11:38:31 AM EDT 2024
      1. pki -d /opt/pki/certdb -P https -p 8443 -h pki1.example.com -c SECret.123 -n "PKI CA Administrator for Example.Org" ca-cert-show 0x2f53655a2f8a5b0187a19f28024fffcd
        Serial Number: 0x2f53655a2f8a5b0187a19f28024fffcd
        Subject DN: UID=test
        Issuer DN: CN=CA Signing Certificate,OU=pki-tomcat,O=topology-01_Foobarmaster.org
        Status: VALID
        Not Valid Before: Fri Jul 19 11:34:12 EDT 2024
        Not Valid After: Fri Jul 19 11:35:12 EDT 2024

              Unassigned Unassigned
              gkimetto@redhat.com Gilbert Kimetto
              RHCS Maintenance RHCS Maintenance
              IdM CS QE IdM CS QE
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: