From a6dc6304fdb5eaf73cbd7d670fcdb737723a7072 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Tue, 30 Jun 2026 15:47:04 +0530 Subject: [PATCH] fix(ssl): include ACME error message in operator-facing warnings --- src/helper/Site_Letsencrypt.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/helper/Site_Letsencrypt.php b/src/helper/Site_Letsencrypt.php index 0669eaf1..87255cd2 100644 --- a/src/helper/Site_Letsencrypt.php +++ b/src/helper/Site_Letsencrypt.php @@ -405,7 +405,7 @@ public function check( Array $domains, $wildcard = false, $preferred_challenge = $authorizationChallengeToCleanup[] = $authorizationChallenge; } catch ( \Exception $e ) { \EE::debug( $e->getMessage() ); - \EE::warning( 'Challenge Authorization failed. Check logs and check if your domain is pointed correctly to this server.' ); + \EE::warning( 'Challenge Authorization failed (' . $e->getMessage() . '). Check logs and check if your domain is pointed correctly to this server.' ); $site_name = $domains[0]; $site_name = str_replace( '*.', '', $site_name ); @@ -641,18 +641,14 @@ private function executeRenewal( $domain, array $alternativeNames, $force = fals return true; } catch ( \Exception $e ) { - \EE::warning( 'A critical error occured during certificate renewal' ); + \EE::warning( 'A critical error occurred during certificate renewal: ' . $e->getMessage() ); \EE::debug( print_r( $e, true ) ); - - \EE::warning( 'Challenge Authorization failed. Check logs and check if your domain is pointed correctly to this server.' ); \EE::log( 'You can fix the issue and re-run: ee site ssl-verify ' . $domains[0] ); return false; } catch ( \Throwable $e ) { - \EE::warning( 'A critical error occured during certificate renewal' ); + \EE::warning( 'A critical error occurred during certificate renewal: ' . $e->getMessage() ); \EE::debug( print_r( $e, true ) ); - - \EE::warning( 'Challenge Authorization failed. Check logs and check if your domain is pointed correctly to this server.' ); \EE::log( 'You can fix the issue and re-run: ee site ssl-verify ' . $domains[0] ); return false;