proxmox/proxmox-rest-server
Gabriel Goller d8fa495a50 rest-server: check permissions on proxy.key and proxy.pem files
To avoid openssl's unhelpful error messages when the proxy.key or
proxy.pem files have the wrong permissions, we open the files. To load
the private key, we can simply read from the file and pass it to the
`set_private_key` openssl function. Sadly such a function does not exist
for loading certificate chains, so we have to open and close the file
before calling the `set_certificate_chain_file` fn.

Motivation: https://forum.proxmox.com/threads/proxmox-backup-tailscale-proxmox-backup-proxy-service-wont-boot.153204

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
2024-11-08 12:09:53 +01:00
..
debian rest-server: bump to 0.8.0-1 2024-09-05 14:15:11 +02:00
examples rest-server: remove lazy_static dependency 2024-08-14 10:33:42 +02:00
src rest-server: check permissions on proxy.key and proxy.pem files 2024-11-08 12:09:53 +01:00
Cargo.toml tree-wide: unify workspace inherited attributes 2024-09-20 08:42:45 +02:00