Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/23097 )
Change subject: IMPALA-13237: [Patch 2 of 5] - Add OpenSSL Utility Function to Validate PEM Bundles ...................................................................... IMPALA-13237: [Patch 2 of 5] - Add OpenSSL Utility Function to Validate PEM Bundles Adds a new function ValidatePemBundle(const string& bundle) to the openssl utilities. This function asserts that all certificates in a string containing a bundle of X.509 PEM-encoded certificates are valid. If even one certificate is invalid, then validation fails and the function returns false. Certificates can be invalid for these reasons: 1. Structure is invalid/PEM encoding is incorrect. 2. notBefore time is in the future. 3. notAfter time is in the past. Testing accomplished by the tests in openssl-util-test.cc successfully passing locally and in a build. Generated-by: Github Copilot (GPT-4.1) Change-Id: I1e9f12e854b679ccf3e94a38c2688a7431460a7a Reviewed-on: http://gerrit.cloudera.org:8080/23097 Reviewed-by: Impala Public Jenkins <[email protected]> Reviewed-by: Jason Fehr <[email protected]> Reviewed-by: Alexey Serbin <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- A be/src/testutil/future-cert.pem A be/src/testutil/future-key.pem M be/src/util/openssl-util-test.cc M be/src/util/openssl-util.cc M be/src/util/openssl-util.h 5 files changed, 341 insertions(+), 0 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified Jason Fehr: Looks good to me, approved Alexey Serbin: Looks good to me, but someone else must approve -- To view, visit http://gerrit.cloudera.org:8080/23097 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I1e9f12e854b679ccf3e94a38c2688a7431460a7a Gerrit-Change-Number: 23097 Gerrit-PatchSet: 19 Gerrit-Owner: Jason Fehr <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Riza Suminto <[email protected]> Gerrit-Reviewer: gaurav singh <[email protected]>
