#TLS issue with Caddy + Podman

1 messages · Page 1 of 1 (latest)

drowsy crow
#

I am running Caddy web server, however as a non root user.
Ports under 1024 require root privilege which I do not have.
So, I have prerouted port 80 to 8080 and 443 to 8443 with nf tables.
Now, when i try to host a website, i get a TLS error.
I don't understand the issue and I thought caddy automatically handles TLS.

Here is a snippet of the Caddyfile with the domain name substituted:

{
    http_port 8080
    https_port 8443
}

hello.com {
    root * /srv/storagebox/www/hello/index.html
    file_server
}
carmine axle
#

What's the TLS error? Have you setup the certificate on the web server?

#

I've not used that server before: Caddy is the first and only web server to use HTTPS automatically and by default. So I presume no cert file setup needed then?

drowsy crow
#

this?
curl: (35) TLS connect error: error:0A000438:SSL routines::tlsv1 alert internal error

carmine axle
#

Similar problem?

drowsy crow
#

my problem is this
< HTTP/1.1 308 Permanent Redirect

#

I have replaced my domain name with hello.com

web@server1:~$ curl -v http://hello.com/.well-known/acme-challenge/test
* Host hello.com:80 was resolved.
* IPv6: (none)
* IPv4: XX.XX.XXX.XXX
*   Trying XX.XX.XXX.XXX:80...
* Connected to hello.com (XX.XX.XXX.XXX) port 80
* using HTTP/1.x
> GET /.well-known/acme-challenge/test HTTP/1.1
> Host: hello.com
> User-Agent: curl/8.14.1
> Accept: */*
> 
* Request completely sent off
< HTTP/1.1 308 Permanent Redirect
< Connection: close
< Location: https://hello.com/.well-known/acme-challenge/test
< Server: Caddy
< Date: Wed, 03 Dec 2025 23:37:25 GMT
< Content-Length: 0
< 
* shutting down connection #0