From 02bd65ba4b19877e7676e7ed24099c4f4d953e42 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 15 May 2013 18:35:16 -0700 Subject: add certificate check to setup --- mod/setup.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mod') diff --git a/mod/setup.php b/mod/setup.php index 1c3620523..7831ce0b6 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -474,6 +474,15 @@ function check_htaccess(&$checks) { $help = ""; if (function_exists('curl_init')){ $test = z_fetch_url($a->get_baseurl()."/setup/testrewrite"); + if(! $test['success']) { + if(strstr($a->get_baseurl(),'https://')) { + $test = z_fetch_url($a->get_baseurl() . "/setup/testrewrite",false,0,array('novalidate' => true)); + if($test['success']) { + check_add($checks, t('SSL certificate validation'),false,true, t('SSL certificate cannot be validated. Fix certificate or disable https access to this site.')); + } + } + } + if ((! $test['success']) || ($test['body'] != "ok")) { $status = false; $help = t('Url rewrite in .htaccess is not working. Check your server configuration.'); -- cgit v1.2.3