From 00a0fe4e361efcdeb600f3a2e88b746fa18b9715 Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Tue, 11 Jun 2024 11:21:30 -0400 Subject: ssl_key_handler: utilize ssl path A bug was found in CI where the server.pem was a directory vs. the expected file. Tested: - None, simple bug Change-Id: Ib0abafe34864f505e7c677457bae89e5aefca394 Signed-off-by: Andrew Geissler --- include/ssl_key_handler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp index e3290b61d0..a8bcfa5b6d 100644 --- a/include/ssl_key_handler.hpp +++ b/include/ssl_key_handler.hpp @@ -498,7 +498,7 @@ inline std::string ensureCertificate() if (!fs::exists(certPath, ec)) { - fs::create_directories(certFile, ec); + fs::create_directories(certPath, ec); } BMCWEB_LOG_INFO("Building SSL Context file= {}", certFile.string()); std::string sslPemFile(certFile); -- cgit v1.2.3