[fix] fix cert file path error

This commit is contained in:
dijunkun
2025-09-08 19:14:48 +08:00
parent 2155e823ca
commit df93bc1ae7
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ jobs:
- name: Cache xmake dependencies
uses: actions/cache@v4
with:
path: ~/.xmake/packages
path: /home/runner/.xmake/packages
key: ${{ runner.os }}-xmake-deps-linux-${{ hashFiles('**/xmake.lua') }}
restore-keys: |
${{ runner.os }}-xmake-deps-linux-

View File

@@ -73,7 +73,7 @@ context_ptr SignalServer::OnTlsInit(websocketpp::connection_hdl hdl) {
asio::ssl::context::default_workarounds | asio::ssl::context::no_sslv2 |
asio::ssl::context::no_sslv3 | asio::ssl::context::single_dh_use);
std::string cert_file = certs_dir_ + "crossdesk.cn_bundle.crt";
std::string cert_file = certs_dir_ + "/crossdesk.cn_bundle.crt";
std::string key_file = certs_dir_ + "/crossdesk.cn.key";
ctx->use_certificate_chain_file(cert_file);
ctx->use_private_key_file(key_file, asio::ssl::context::pem);