proxy: use <configdir>/server.pfx for tls

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-02-04 15:16:41 +01:00
parent 9f4962d396
commit 9d02e5c38a
1 changed files with 2 additions and 1 deletions

View File

@ -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();