forked from rustls/webpki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revocation: use cert CRL DP and CRL IDP extensions.
This commit updates the CRL validation process so that when selecting a CRL we consider more than just whether the cert issuer matches the CRL issuer. As of this commit we consider a CRL authoritative for a certificate when: * The certificate issuer matches the CRL issuer and, * The certificate has no CRL distribution points, and the CRL has no issuing distribution point extension. * Or, the certificate has no CRL distribution points, but the the CRL has an issuing distribution point extension with a scope that includes the certificate. * Or, the certificate has CRL distribution points, and the CRL has an issuing distribution point extension with a scope that includes the certificate, and at least one distribution point full name is a URI type general name that can also be found in the CRL issuing distribution point full name general name sequence. In all other circumstances the CRL is not considered authoritative. If we can't find an authoritative CRL from the set of loaded CRLs the certificate will be considered as having unknown revocation status. Whether this is an error or not is controlled by the user provided revocation policy. TODO: * test coverage. * tidying up comments.
- Loading branch information
Showing
4 changed files
with
142 additions
and
23 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
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
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
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