aboutsummaryrefslogtreecommitdiffstats
path: root/mod/setup.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-15 18:35:16 -0700
committerfriendica <info@friendica.com>2013-05-15 18:35:16 -0700
commit02bd65ba4b19877e7676e7ed24099c4f4d953e42 (patch)
tree3b56eda3d30a86d646cf00957b12bfc50792d7cb /mod/setup.php
parentfece1675d39d2d4a060c1bd87f2b8023e89c5df4 (diff)
downloadvolse-hubzilla-02bd65ba4b19877e7676e7ed24099c4f4d953e42.tar.gz
volse-hubzilla-02bd65ba4b19877e7676e7ed24099c4f4d953e42.tar.bz2
volse-hubzilla-02bd65ba4b19877e7676e7ed24099c4f4d953e42.zip
add certificate check to setup
Diffstat (limited to 'mod/setup.php')
-rwxr-xr-xmod/setup.php9
1 files changed, 9 insertions, 0 deletions
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.');