From 9d02e5c38ab38c3dc9a3fb7db427c40748223f8a Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 4 Feb 2019 15:16:41 +0100 Subject: [PATCH] proxy: use /server.pfx for tls Signed-off-by: Wolfgang Bumiller --- src/bin/proxmox-backup-proxy.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs index b032634a..0e8617c4 100644 --- a/src/bin/proxmox-backup-proxy.rs +++ b/src/bin/proxmox-backup-proxy.rs @@ -1,3 +1,4 @@ +#[macro_use] extern crate proxmox_backup; use proxmox_backup::api::router::*; @@ -48,7 +49,7 @@ fn main() { let identity = native_tls::Identity::from_pkcs12( - &std::fs::read("server.pfx").unwrap(), + &std::fs::read(configdir!("/proxy.pfx")).unwrap(), "", ).unwrap();