Skip to content

RFE: test CRL publishing is working #329

@yrro

Description

@yrro

Unless I've missed something there doesn't seem to be a health check for CRL publishing.

This would:

  • Fetch https://$HOSTNAME and obtain TLS server certificate
  • Obtain the CRL distribution endpoint URL (openssl x509 -in foo.crt -ext crlDistributionPoints -noout)
  • Check the URL is as expected (http://ipa-ca.$suffix/ipa/crl/MasterCRL.bin)
  • Fetch the CRL from $HOSTNAME
  • Verify the CRL signature, obtain last & next update times(openssl crl -in MasterCRL.bin -inform der -CAfile /etc/ipa/ca.crt -noout -lastupdate -nextupdate)
  • Check the system clock is >= last update time
  • Check the system clock is < next update time
  • Check the next update time is <= 4 hours away
  • Check each certificate in the CRL:
    • check that it's revoked
    • check that it hasn't expired
  • Search for certificates that have been revoked but have not expired, and verify that they are present in the CRL
  • Verify that ca.certStatusUpdateInterval in /etc/pki/pki-tomcat/ca/CS.cfg is consistent with the server's status as a CRL generator (https://issues.redhat.com/browse/RHEL-30280)

I'll implement if you think that sounds useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions