bharatviswa504 commented on a change in pull request #2041:
URL: https://github.com/apache/ozone/pull/2041#discussion_r597409148
##########
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:
My idea here is DefaultCAProfile when used by CA Server it will issue
only CA Certificate.
And RootCA Server right now starts with DefaultCAProfile on fresh installed
clusters, where as on upgraded cluster from non-HA rootCAServer will be started
like before with DefaultProfile. The integration of DefaultCAServer and
starting 2 CA will be taken care in further Jiras.
--
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]