I'm evaluating the possibility of changing my main webserver from nginx to caddy 2.
Is there any way to use existing letsencrypt certificates managed by certbot in caddy 2?
You can. You need to have the following line in your Caddyfile. You have to obtain cert.pem and key.pem files and place them in same directory as Caddyfile.
tls cert.pem key.pem
You can refer this official documentation here. https://caddyserver.com/docs/v2-upgrade#tls
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With