proxy: use <configdir>/server.pfx for tls
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
9f4962d396
commit
9d02e5c38a
|
@ -1,3 +1,4 @@
|
||||||
|
#[macro_use]
|
||||||
extern crate proxmox_backup;
|
extern crate proxmox_backup;
|
||||||
|
|
||||||
use proxmox_backup::api::router::*;
|
use proxmox_backup::api::router::*;
|
||||||
|
@ -48,7 +49,7 @@ fn main() {
|
||||||
|
|
||||||
let identity =
|
let identity =
|
||||||
native_tls::Identity::from_pkcs12(
|
native_tls::Identity::from_pkcs12(
|
||||||
&std::fs::read("server.pfx").unwrap(),
|
&std::fs::read(configdir!("/proxy.pfx")).unwrap(),
|
||||||
"",
|
"",
|
||||||
).unwrap();
|
).unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue