ChenSammi commented on code in PR #3930:
URL: https://github.com/apache/ozone/pull/3930#discussion_r1015389374
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/client/DefaultCertificateClient.java:
##########
@@ -774,6 +797,19 @@ protected InitResponse handleCase(InitCase init)
}
}
+ protected void removeMaterial() throws CertificateException {
+ try {
+ FileUtils.deleteDirectory(
+ securityConfig.getKeyLocation(component).toFile());
+ getLogger().info("Certificate renewal: key material is removed.");
+ FileUtils.deleteDirectory(
+ securityConfig.getCertificateLocation(component).toFile());
+ getLogger().info("Certificate renewal: certificates are removed.");
+ } catch (IOException e) {
+ throw new CertificateException("Certificate renewal failed.", e);
Review Comment:
Certificate renewal failed. -> Certificate renewal failed: remove key
material failed.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]