To create an openssl key in moodle network

Re: To create an openssl key in moodle network

by az incorp -
Number of replies: 3
Hey man, I've just got a very easiest way to generate openssl key in moodle network for XAMPP server.

Hope this is the right place for me to share this good solution.

follow step by step of my instruction:
1) Open php.ini in your xampp/apache/bin/php.ini
uncomment extension=php_openssl.dll that mean you must remove the symbol of ';'

2) Open config.php in your moodle folder xampp\htdocs\moodle\config.php

3) This is the tricky one. Just include $CFG->opensslcnf ='C:\xampp\apache\bin\openssl.cnf'; -> you must insert the right path to your openssl.cnf and a very simple in xampp you can find it in xampp\apache\bin\openssl.cnf
see the config.php file below with text blue color. I use XAMPP 1.7.0 and Moodle 1.9.7 Stable version and it works.

<?php /// Moodle Configuration File

unset($CFG);

$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = '*****';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';
$CFG->opensslcnf ='C:\xampp\apache\bin\openssl.cnf';
$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dirroot = 'C:\xampp\htdocs\moodle';
$CFG->dataroot = 'C:\xampp/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
$CFG->passwordsaltmain = 'Vol!d;`!{[FFFO,YVX5{^;N?9r~G';

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

*REMEMBER* Dont try to do something funny to install opensll in XAMPP, reminder... OpenSSL is already installed in your XAMPP machine. Its great, isnt it?? wink

4) Then thats it. Login to administrator > Networking > Setting... now you have generate your key big grin
hope this will help you

5) But i have a problem to generate networking key in MAHARA... have anyone solved the problem? please let me know. TQ
Average of ratings: Useful (5)
In reply to az incorp

Re: To create an openssl key in moodle network

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
yeah - that patch isn't in Mahara yet - will try to get some time to put it in over the next couple of weeks.
In reply to Dan Marsden

Re: To create an openssl key in moodle network

by az incorp -
hai Dan, I've try so much to generate openssl key in MAHARA but it doesnt work,
I have also try this instruction
http://gprasu.blogspot.com/2009/07/mahara-site-not-available-could-not.html

but it also dont work. Mahoodle is an awesome combination. It should makes a lot of changes in online education. I need to present to my bos within this week but I cannot generate MAHARA key by now. Is there any suggestion?
In reply to az incorp

תשובה ל: Re: To create an openssl key in moodle network

by Miki Alliel -
Picture of Translators
hey
thanks' this solution seemed to eliminate my warnings
thanks