Forums | Mahara Community
Support
/
Networking - SSL certificate automatically regenerating
26 August 2010, 19:57
Howdy,
I've installed both moodle and mahara and following the mahoodle pdf.
In trying to get the single sign on working, I've found that moodle complains that the saved SSL key is different from the one mahara is publishing.
On further investigation, I've noticed mahara generating a new key, with new signatures (SHA1 & MD5) on each page refresh of the admin/site/networking.php page.
I'm using php-5.2.12 & openssl-0.9.8k
Cheers
Chris
27 August 2010, 0:24
Hi again,
Here is my log :(
[Fri Aug 27 05:29:11 2010] [error] [client 149.171.21.211] [WAR] 5d (api/xmlrpc/lib.php:1108) Undefined offset: 1, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:11 2010] [error] [client 149.171.21.211] Call stack (most recent first):, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:11 2010] [error] [client 149.171.21.211] * log_message("Undefined offset: 1", 8, true, true, "/var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.p...", 1108) at /var/www/localhost/htdocs/mahara2/lib/errors.php:446, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:11 2010] [error] [client 149.171.21.211] * error(8, "Undefined offset: 1", "/var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.p...", 1108, array(size 2)) at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1108, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:11 2010] [error] [client 149.171.21.211] * OpenSslRepo->get_keypair() at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1029, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:11 2010] [error] [client 149.171.21.211] * OpenSslRepo->__construct() at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1015, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:11 2010] [error] [client 149.171.21.211] * OpenSslRepo::singleton() at /var/www/localhost/htdocs/mahara2/admin/site/networking.php:56, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:11 2010] [error] [client 149.171.21.211] , referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] [WAR] 5d (api/xmlrpc/lib.php:1152) date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] Call stack (most recent first):, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * log_message("date() [function.date]: It is not safe to rely on ...", 8, true, true, "/var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.p...", 1152) at /var/www/localhost/htdocs/mahara2/lib/errors.php:446, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * error(2, "date() [<a href='function.date'>function.date</a>]...", "/var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.p...", 1152, array(size 6)) at Unknown:0, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * date("Y/m/d h:i:s", 1314422952) at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1152, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * OpenSslRepo->get_keypair() at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1029, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * OpenSslRepo->__construct() at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1015, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * OpenSslRepo::singleton() at /var/www/localhost/htdocs/mahara2/admin/site/networking.php:56, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] , referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] [INF] 5d (api/xmlrpc/lib.php:1152) New public key has been generated. It expires 2011/08/27 05:29:12, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] [WAR] 5d (lib/mahara.php:1283) strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] Call stack (most recent first):, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * log_message("strftime() [function.strftime]: It is not safe to ...", 8, true, true, "/var/www/localhost/htdocs/mahara2/lib/mahara.php", 1283) at /var/www/localhost/htdocs/mahara2/lib/errors.php:446, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * error(2, "strftime() [<a href='function.strftime'>function.s...", "/var/www/localhost/htdocs/mahara2/lib/mahara.php", 1283, array(size 4)) at Unknown:0, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * strftime("%d %B %Y, %l:%M %p", 1314422952) at /var/www/localhost/htdocs/mahara2/lib/mahara.php:1283, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] * format_date(1314422952) at /var/www/localhost/htdocs/mahara2/admin/site/networking.php:91, referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
[Fri Aug 27 05:29:12 2010] [error] [client 149.171.21.211] , referer: http://lugnut.omnium.net.au/mahara2/admin/site/options.php
If anyone has any ideas that would be really cool,
Thanks,
Chris
27 August 2010, 0:30
Well the log shortened when I added the timezone setting in php.ini and restarted apache.
Here is what the error_log looks like now - so we've shortened what is wrong down to:
r] [client 149.171.21.211] [WAR] ea (api/xmlrpc/lib.php:1108) Undefined offset: 1, referer: http://lugnut.omnium.net.au/mahara2/admin/
[Fri Aug 27 05:37:16 2010] [error] [client 149.171.21.211] Call stack (most recent first):, referer: http://lugnut.omnium.net.au/mahara2/admin/
[Fri Aug 27 05:37:16 2010] [error] [client 149.171.21.211] * log_message("Undefined offset: 1", 8, true, true, "/var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.p...", 1108) at /var/www/localhost/htdocs/mahara2/lib/errors.php:446, referer: http://lugnut.omnium.net.au/mahara2/admin/
[Fri Aug 27 05:37:16 2010] [error] [client 149.171.21.211] * error(8, "Undefined offset: 1", "/var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.p...", 1108, array(size 2)) at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1108, referer: http://lugnut.omnium.net.au/mahara2/admin/
[Fri Aug 27 05:37:16 2010] [error] [client 149.171.21.211] * OpenSslRepo->get_keypair() at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1029, referer: http://lugnut.omnium.net.au/mahara2/admin/
[Fri Aug 27 05:37:16 2010] [error] [client 149.171.21.211] * OpenSslRepo->__construct() at /var/www/localhost/htdocs/mahara2/api/xmlrpc/lib.php:1015, referer: http://lugnut.omnium.net.au/mahara2/admin/
[Fri Aug 27 05:37:16 2010] [error] [client 149.171.21.211] * OpenSslRepo::singleton() at /var/www/localhost/htdocs/mahara2/admin/site/networking.php:56, referer: http://lugnut.omnium.net.au/mahara2/admin/
[Fri Aug 27 05:37:16 2010] [error] [client 149.171.21.211] , referer: http://lugnut.omnium.net.au/mahara2/admin/
[Fri Aug 27 05:37:16 2010] [error] [client 149.171.21.211] [INF] ea (api/xmlrpc/lib.php:1152) New public key has been generated. It expires 2011/08/27 05:37:16, referer: http://lugnut.omnium.net.au/mahara2/admin/
01 September 2010, 20:22
[SOLVED] Sort of.
My first dev server was PPC running gentoo. I suspect it's something to do with php - I tried with php-5.2.12/5.2.13/5.3.x
Since last week, I've moved my test to x86 architecture and there is no problems with the auto-renewing certificate.
Cheers
Chris