xiaoyuyao commented on a change in pull request #754: HDDS-1065. OM and DN
should persist SCM certificate as the trust root. Contributed by Ajay Kumar.
URL: https://github.com/apache/hadoop/pull/754#discussion_r284963127
##########
File path:
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/client/CertificateClient.java
##########
@@ -135,10 +135,11 @@ boolean verifySignature(byte[] data, byte[] signature,
*
* @param pemEncodedCert - pem encoded X509 Certificate
* @param force - override any existing file
+ * @param caCert - Is CA certificate.
* @throws CertificateException - on Error.
*
*/
- void storeCertificate(String pemEncodedCert, boolean force)
+ void storeCertificate(String pemEncodedCert, boolean force, boolean caCert)
Review comment:
Agree, let's add a new function as @anuengineer suggested.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]