“Challenge request failed for domain” only when renew certificate
-
I have successfully generated my first SSL cert using WP Encrypt. I switched my WordPress site to https a month ago. BUT I just noticed that WP Encrypt is now unable to get me a new cert.
This is the reason:
First time I used this plugin Util::get_letsencrypt_challenges_dir_url() returned URL starting with “http”. But now it returns a URL starting with “https”. This can cause errors (it did in my case). However WP Encrypt will only tell “Challenge request failed for domain”. You will not see the exact error message. If you want to see the error you will have to modify /wp-encrypt/inc/WPENC/Core/Challenge.php and add $response->get_error_message() to the error message returned.
In my case this was the error: URL error 35: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure.
It seems my server has a old version of curl that still supports SSL v3.
This could easily be solved by the plugin by requesting http instead of https. Or at least try http if not https is working. Or use wp_remote_get with sslverify option set to false.
Quick solution is to temporary switch https off in your wordpress site, generate cert and then switch back. You will have to do this manually at least once every 90 days:
define(‘WP_HOME’,’https://www….’);
define(‘WP_SITEURL’,’https://www….’);But I hope this problem will be solved in the plugin directly in the future.
NOTE: “Challenge request failed for domain” can also mean that your server is blocking filenames that starts with “.”. This wasn’t the problem in my case because I could access /.well-known/acme-challenge/<filename> using both http and https when using a normal browser.
- The topic ‘“Challenge request failed for domain” only when renew certificate’ is closed to new replies.