1. Output of caddy version
:
v2.6.2 h1:wKoFIxpmOJLGl3QXoo6PNbYvGW4xLEgo32GPBEjWL8o=
2. How I run Caddy:
a. System environment: Docker
b. Command:
I run with docker-compose
.
c. Service/unit/compose file:
version: '3'
services:
caddy:
image: caddy:alpine
hostname: caddy
container_name: caddy
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
d. My complete Caddy config:
104.237.252.57 {
root * /usr/share/caddy
file_server
}
3. The problem I’m having:
It generates certificate for my IP Address, but it’s only valid for one day:
Subject Alternative Names: IP Address:104.237.252.57
Valid From: November 28, 2022
Valid To: November 28, 2022
I checked the issued certificate in /data
from Certificate Decoder - Decode certificates to view their contents.
4. Error messages and/or full log output:
{"level":"info","ts":1669661966.5556698,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["104.237.252.57"]}
{"level":"info","ts":1669661966.5573916,"logger":"tls.obtain","msg":"acquiring lock","identifier":"104.237.252.57"}
{"level":"info","ts":1669661966.5604575,"logger":"tls.obtain","msg":"lock acquired","identifier":"104.237.252.57"}
{"level":"info","ts":1669661966.5610628,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"104.237.252.57"}
{"level":"info","ts":1669661966.5824776,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1669661966.5829363,"msg":"serving initial configuration"}
{"level":"info","ts":1669661966.5917335,"logger":"tls.obtain","msg":"certificate obtained successfully","identifier":"104.237.252.57"}
{"level":"info","ts":1669661966.5918114,"logger":"tls.obtain","msg":"releasing lock","identifier":"104.237.252.57"}
{"level":"warn","ts":1669661966.592534,"logger":"tls","msg":"stapling OCSP","error":"no OCSP stapling for [104.237.252.57]: no OCSP server specified in certificate","identifiers":["104.237.252.57"]}
5. What I already tried:
I tried using zerossl-bot
but no luck.