Re: RFR: 8296742: Illegal X509 Extension should not be created [v6]

2022-11-22 Thread Weijun Wang
On Tue, 22 Nov 2022 16:22:44 GMT, Sean Mullan wrote: >> Weijun Wang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> add test >> >> only in patch2: >> unchanged: > > src/java.base/share/classes/sun/security/x509/CRLReasonCodeExtens

Re: RFR: 8296742: Illegal X509 Extension should not be created [v6]

2022-11-22 Thread Sean Mullan
On Thu, 17 Nov 2022 23:52:02 GMT, Weijun Wang wrote: >> Inside JDK we support a lot of X.509 certificate extensions. Almost every >> extension has a rule about what is legal or not. For example, the names in >> `SubjectAlternativeNameExtension` cannot be missing or empty. Usually, a >> rule is

Re: RFR: 8296742: Illegal X509 Extension should not be created [v6]

2022-11-17 Thread Weijun Wang
> Inside JDK we support a lot of X.509 certificate extensions. Almost every > extension has a rule about what is legal or not. For example, the names in > `SubjectAlternativeNameExtension` cannot be missing or empty. Usually, a rule > is enforced in the `encode()` method, where the extension val