Todd Lipcon has submitted this change and it was merged. Change subject: Extract a static function to generate a self-signed CA ......................................................................
Extract a static function to generate a self-signed CA We had some similar code in a test case and in MasterCertAuthority. This extracts a function to create a self-signed CA, as well as a test utility function which creates both a self-signed CA and private key. Currently the test utility is only used from one test case, but I have plans to use it elsewhere. Change-Id: Ib40add99ed96e4753a3810709c66d07c96ab70bd Reviewed-on: http://gerrit.cloudera.org:8080/5844 Tested-by: Kudu Jenkins Reviewed-by: Alexey Serbin <aser...@cloudera.com> Reviewed-by: Dan Burkert <danburk...@apache.org> --- M src/kudu/master/master_cert_authority.cc M src/kudu/security/CMakeLists.txt M src/kudu/security/ca/cert_management-test.cc M src/kudu/security/ca/cert_management.cc M src/kudu/security/ca/cert_management.h A src/kudu/security/security-test-util.cc M src/kudu/security/security-test-util.h 7 files changed, 112 insertions(+), 54 deletions(-) Approvals: Dan Burkert: Looks good to me, approved Alexey Serbin: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/5844 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib40add99ed96e4753a3810709c66d07c96ab70bd Gerrit-PatchSet: 4 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Todd Lipcon <t...@apache.org> Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: Dan Burkert <danburk...@apache.org> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <t...@apache.org>