I am trying to create an HTTPS reverse proxy for my vaultwarden server.
2. Error messages and/or full log output:
An error occurred during a connection to 192.168.1.168:9999. Peer’s certificate has an invalid signature.
Error code: SEC_ERROR_BAD_SIGNATURE
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.
Please update to the latest version (v2.8.4 as of this comment); you’re missing about two years of updates and bugfixes.
As for the cert error - your site address is an IP address, which requires Caddy to issue self-signed certificates. Valid HTTPS certs for IP addresses are generally not possible to acquire.
That means you would need to install your Caddy server’s root CA certificate in your browser in order to trust its certificate, or you would need to accept the invalid certificate and continue anyway.
The default OS for the Raspberry Pi systems is based on Debian, and their package maintainers have not opted to include the last few years of updates. We recommend you install using a more up-to-date repository.