Hello,
I’m trying to move my sites to a new server and I’d like to start everything before changing the DNS records for my domain names. As I had done in the past, I moved the caddy folder from the old server to the new one, in order to have every certificates ready to go and launch Caddy on the new one before the transition.
But this time, I can’t make it work. When I launch Caddy using the command line, I have this error :
/usr/local/bin/caddy -log stdout -agree=true -email=mymail@gmail.com -conf=/etc/caddy/Caddyfile -root=/var/www
Activating privacy features... 2019/06/10 10:12:29 [INFO][cache:0xc000084b40] Started certificate maintenance routine
2019/06/10 10:12:30 [INFO] [www.voiretmanger.fr] acme: Obtaining bundled SAN certificate
2019/06/10 10:12:31 [INFO] [www.voiretmanger.fr] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/QDxVs4GDNRR7mtfbV7wu9b4rjuq5cNwhpJ76qnAmoj4
2019/06/10 10:12:31 [INFO] [www.voiretmanger.fr] acme: use tls-alpn-01 solver
2019/06/10 10:12:31 [INFO] [www.voiretmanger.fr] acme: Trying to solve TLS-ALPN-01
2019/06/10 10:12:37 [INFO] Unable to deactivated authorizations: https://acme-v02.api.letsencrypt.org/acme/authz/QDxVs4GDNRR7mtfbV7wu9b4rjuq5cNwhpJ76qnAmoj4
2019/06/10 10:12:37 [www.voiretmanger.fr] failed to obtain certificate: acme: Error -> One or more domains had a problem:
[www.voiretmanger.fr] acme: error: 400 :: urn:ietf:params:acme:error:tls :: remote error: tls: internal error, url:
It seems Caddy is trying to renew the certificates, and not use the existing one which should be valid (I rsynced the folder from the old server just minutes before).
Permissions should be right, here are the commands applied from the script I wrote and used : voiretmanger.fr/post-install.sh at main · nicolinuxfr/voiretmanger.fr · GitHub
What am I missing ?
Thanks for your help !