Hi , i am a newbee in caddy and struggle with a problem around backend with no valid SSL
1. The problem I’m having:
I have a backend with an unsecured SSL certificate (no valid root certificate). and i do not find how to configure the insecure_skip_verify configuration
NB: i cannot change the fact that the ssl certificate is wrong
I want to have Client HTTP => to caddy => backend 443 (wrong certificate)
if i setup straight reverse proxy configuration file
localhost:80
{
reverse_proxy https://myCorruptedSSL:443
}
the error message is “tls: failed to verify certificate: x509: certificate signed by unknown authority”
then i am adjusting the configuration to
localhost:80
{
reverse_proxy https://myCorruptedSSL:443
{
transport http {
insecure_skip_verify
}
}
}
and i got this error message
{"level":"info","ts":1688397782.3754442,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
Error: adapting config using caddyfile: parsing caddyfile tokens for 'reverse_proxy': /etc/caddy/Caddyfile:5 - Error during parsing: for now, all proxy upstreams must use the same scheme (transport protocol); expecting 'https://' but got '://'
not sure what to put there i have tries many combination but not the good one
can someone help ?
thanks in advance
3. Caddy version:
i am using caddy v2.6.4
4. How I installed and ran Caddy:
i am running it via docker compose via basic configuration
` caddyproxy :
image: caddy
restart: unless-stopped
ports:
- 8090:80
volumes:
- ./caddyConfigSSL.txt:/etc/caddy/Caddyfile
`
a. System environment:
Windows + WSL2 + Podman compose