bharatviswa504 commented on a change in pull request #2041:
URL: https://github.com/apache/ozone/pull/2041#discussion_r599219380
##########
File path:
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/authority/PKIProfiles/DefaultCAProfile.java
##########
@@ -43,4 +47,38 @@
VALIDATE_NAME_CONSTRAINTS = (e, b) -> TRUE;
static final BiFunction<Extension, PKIProfile, Boolean>
VALIDATE_CRL_DISTRIBUTION_POINTS = (e, b) -> TRUE;
-}
+
+
+ private static boolean validateBasicExtensions(Extension ext,
+ PKIProfile pkiProfile) {
+ BasicConstraints constraints =
+ BasicConstraints.getInstance(ext.getParsedValue());
+ if(constraints.isCA()) {
Review comment:
Yes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]