Renew certificate with a different address

While trying to renew an expired certificate, the acme challenge fails since its trying to access instead of

Actual output:

Attempting to renew cert from /etc/letsencrypt/renewal/ produced an unexpected error: Failed 
authorization procedure. (http-01): urn:acme:error:unauthorized :: The client lacks sufficient 
authorization :: Invalid response from
challenge/c_IvQsTpfBXTWqtmxz250UGK0kbkRsVEIVCYgpBsviY: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 
<title>404 Not Found</title>
<h1>Not Found</h1>
<p". Skipping.

Is there a way I can specify this to use https instead of http for the challenge?

Using debian 8 jessie with nginx

I tried generating a new certificate using “–preferred-challenges tls-sni” but…:

None of the preferred challenges are supported by the selected plugin

1 Like

Couldn’t find anything on the docs that specify a way to do the challenge with https…

search in the documentation page for “Challenge types (and port)”

“None of the preferred challenges are supported by the selected plugin. Skipping” with certbot renew --preferred-challenges tls-sni
I guess this is because I used webroot to create the cert in the first place? How can I change it now?

As the message tells you, the nginx plugin doesn't support the TLS-SNI challenge. How do you have HTTPS implemented on your server? Do you have a HTTP -> HTTPS redirect implemented? Because Let's Encrypt will follow that.

According to the documentation, the Nginx plugin supports only TLS-SNI-01.

At a guess, certbot renew won't change plugins if you pass --preferred-challenges, so it's still trying to use the webroot plugin, which certainly doesn't support TLS-SNI-01.

@JMonteiro The simple way to change plugins is to use the appropriate Certbot command to issue a new certificate using the desired plugin and list of domains. The complicated way is to edit the /etc/letsencrypt/renewal/ config file.


I just wanted to confirm that @mnordhoff’s interpretation of the situation and Certbot’s behavior is correct here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.