The Oracle documentation says that โa successful validation of the JAR file occurs if the signature is valid [...]โ, without further specifying what โvalidโ means.
Being โvalidโ requires, among other things, a โvalidโ corresponding X.509 certificate. โCorrectโ here will include, for example, the correct expiration date and suitable X.509v3 extensions (if any).
My question is about the latter. What combination of X.509v3 extensions does Oracle require for JAR authentication?
For example, I would expect it to be present if ExtendedKeyUsage , and then it should contain a CodeSigning bit.
I am writing a non-Java library for JAR validation, and I have not been able to find a specification for this.
jar digital-signature x509
Konstantin shemyak
source share