I've installed tailscale on my proxmox backup vm, along with a cronjob to update the certificate files daily... or so I thought.
/etc/cron.daily/tailscale_cert
However, I noticed that my proxmox server was complaining it couldn't reach the backup server. I gave the VM a reboot, no luck. Afterwards I logged onto it and found that proxmox-backup-proxy.service isn't running.
The error seems to be indicating that there's some SSL issue here, but I'm unsure what it is. Perhaps it doesn't like that tailscale generates EC keys?
How can I get this to work so that proxmox backups work, with a tailscale generated certificate?
/etc/cron.daily/tailscale_cert
Bash:
#!/bin/sh
tailscale cert --cert-file /etc/proxmox-backup/proxy.pem --key-file /etc/proxmox-backup/proxy.key $(hostname -f) && systemctl reload proxmox-backup-proxy
However, I noticed that my proxmox server was complaining it couldn't reach the backup server. I gave the VM a reboot, no luck. Afterwards I logged onto it and found that proxmox-backup-proxy.service isn't running.
The error seems to be indicating that there's some SSL issue here, but I'm unsure what it is. Perhaps it doesn't like that tailscale generates EC keys?
Code:
░░ Subject: A start job for unit proxmox-backup-proxy.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit proxmox-backup-proxy.service has begun execution.
░░
░░ The job identifier is 3889.
Aug 21 23:35:57 pbs proxmox-backup-proxy[22568]: apply old journal log rrd.journal-669a4d10
Aug 21 23:35:57 pbs proxmox-backup-proxy[22568]: Error: failed to set tls acceptor private key file
Aug 21 23:35:57 pbs proxmox-backup-proxy[22568]: Caused by:
Aug 21 23:35:57 pbs proxmox-backup-proxy[22568]: error:8000000D:system library:file_ctrl:reason(2):../crypto/bio/bss_file.c:297:calling fopen(/etc/proxmox-backup/proxy.key, r), error:10080002:BIO routines:file_ctrl:system lib:../crypto/bio/bss_file.c:300:, error:0A080002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:../ssl/ssl_rsa.c:367:
Aug 21 23:35:57 pbs systemd[1]: proxmox-backup-proxy.service: Main process exited, code=exited, status=1/FAILURE
How can I get this to work so that proxmox backups work, with a tailscale generated certificate?