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??
4) Then thats it. Login to administrator > Networking > Setting... now you have generate your key
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