RFR: 8277246: No need to check about KeyUsage when validating a TSA certificate [v2]

Weijun Wang weijun at openjdk.java.net
Tue Nov 16 23:28:36 UTC 2021


On Tue, 16 Nov 2021 21:00:12 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> There is no need to check for the KeyUsage extension when validating a TSA certificate.
>> 
>> A test is modified where a TSA cert has a KeyUsage but without the DigitalSignature bit.
>
> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   clarify RFC requirement

Sean found RFC 5280, 4.2.1.12:

   id-kp-timeStamping            OBJECT IDENTIFIER ::= { id-kp 8 }
   -- Binding the hash of an object to a time
   -- Key usage bits that may be consistent: digitalSignature
   -- and/or nonRepudiation

so it seems either is OK. That said, it's just a "may", and to me it reads more like that others are NOT consistent and should be rejected.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6416


More information about the security-dev mailing list