Moodle Networking: Missing public key

Moodle Networking: Missing public key

by Loris M -
Number of replies: 28
Using Win2k3 Web Edition, IIS6, PHP 5.2.3, MYSQL 5.0.41
OpenSSL, Curl, XML-RPC extensions are installed
Public key is not generating, I have tried to delete it and get a new one.. but still get nothing!
Date is showing 1970.
publickeykb5.jpg

any help would be appreciated
Loris
Average of ratings: -
In reply to Loris M

Re: Moodle Networking: Missing public key

by Loris M -

Does the networking functionality not work on a Win2k3 system and IIS6? I have tried everything i can think of to make it work with no luck.. Has anyone had any luck getting a public key on windows based systems????

In reply to Loris M

Re: Moodle Networking: Missing public key

by Daren Martin -

To get the keys working on Win2K3 and IIS, add the environment variable OPENSSL_CONF = <path to your openssl.cnf file>

openssl.cnf is usually found in PHP\extras.

In reply to Daren Martin

Re: Moodle Networking: Missing public key

by Damian Bardiger -
HI,

Excuse my ignorance but where do I add the variable?

OPENSSL_CONF = <path to your openssl.cnf file>

Cheers
In reply to Damian Bardiger

Re: Moodle Networking: Missing public key

by Daren Martin -

Control Panel> System> Advanced Tab> Environment Variables Button

System Variables

Daren

In reply to Daren Martin

Re: Moodle Networking: Missing public key

by Damian Bardiger -
Thats sorted it smile

Thanks very much

Damian
In reply to Damian Bardiger

Re: Moodle Networking: Missing public key

by Tom Cowles -
I am having the same problem, but I have already set the OPENSSL_CONF variable to point to the openssl.cnf file.

I am running:
Moodle 1.8
IIS 6
Windows 2003
PHP 4.4.7
MySQL 4.1

phpinfo() is reporting that OpenSSL is enabled.

All I am getting is the same as in the orginal screenshot.
In reply to Tom Cowles

Re: Moodle Networking: Missing public key

by Tom Cowles -
OK - working now. I installed the latest version of OpenSSL and it suddenly worked OK.
In reply to Tom Cowles

Re: Moodle Networking: Missing public key

by Juan Emilio Fuentes -
Hi, I find out the file openssl.cnf in php/extras but It doesn´t be there. Have I to make this file?. Could somebody send me an example of this file?. Thanking in advance, JUan
In reply to Juan Emilio Fuentes

Re: Moodle Networking: Missing public key

by Juan Emilio Fuentes -
Hola a todos Ya resolví el problema con la instalación del 1.8.2 y de los soft CURL, expat y OPENSSL. Estoy por hacer pruebas de comunicaciòn ahora. Saludos y gracias de todos modos, JUan
In reply to Damian Bardiger

Re: Moodle Networking: Missing public key

by moodle LS -

Please go to start>run>type cmd. Under DOS command go to Moodle Directory. Type cd/moodle directory/server/php/extras/openssl

Enter the command line: copy openssl.cnf to moodle directory/server/php/extras/openssl/openssl.conf

Then go to start > control panel> system > environment variable. Under System variables> click on New to add: Variable name as OPENSSL_CONF and Variable value as: moodle directory\server\php\extras\openssl\openssl.conf

Click okay and restart your moodle server. Good luck

Rustam

 

In reply to Loris M

Re: Moodle Networking: Missing public key

by Ali Hastie -
Hi

I have the same problem with same system setup. Also cannot find openssl.cnf file within extras folder.
Cheers,
Ali
In reply to Ali Hastie

회신: Re: Moodle Networking: Missing public key

by Jong-Dae Park -

I had the same problem in Windows servers. I solved the problem as follows,

In command window, copy the openssl.cnf (in php\extras\openssl folder) to openssl.conf or others. Then set the environment variable OPENSSL_CONF to the path to the openssl.conf file. Restart the webserver.

Best Wishes,

JD Park

In reply to Jong-Dae Park

Re: 회신: Re: Moodle Networking: Missing public key

by air Jordan -
hi - what do you mean by copy the openssl.cnf (in php\extras\openssl folder) to openssl.conf or others ? to the folder?

thanks,

Shiran
In reply to air Jordan

Re: Moodle Networking: Missing public key

by Klaus Pieslinger -
This worked for me, albeit on Windows:
http://moodle.org/mod/forum/discuss.php?d=83808

Your Mileage May Vary... or not... good luck!
In reply to Klaus Pieslinger

Re: Moodle Networking: Missing public key

by Robert Laboer -
Hi,

I have the same problem. I have two Moodle-instances at hostgator.com, and whatever I try, I do not get the Key.
Is Networking possible on a shared server like Hostgator? Or do you have experience with better hosting-companies?

Any help would be great!

Thanks,
Robert
In reply to Robert Laboer

Re: Moodle Networking: Missing public key

by Cyndy Pederson -
I'm having the same problem getting my test moodles to generate a public key.  I've been through the forums and tried the recommended work arounds.  Any other suggestions?
In reply to Cyndy Pederson

Re: Moodle Networking: Missing public key

by E. L. Cooper -

Email your host and ask them what you need to do to generate  an open ssl certificate and tell them you need open ssl on port 443. Tell them what it is for. It will take several tickets to get what you need done and if you are on a shared hosting server they may not want to do what is required.

In reply to E. L. Cooper

Re: Moodle Networking: Missing public key

by Hubert Chathi -
No, Moodle Network keys are different from SSL keys. Moodle Network keys should be generated automatically, if OpenSSL is installed.
In reply to Hubert Chathi

Re: Moodle Networking: Missing public key

by E. L. Cooper -
I know they are different but they don't generate without ssl enabled on port 443 do they? I know from experience that host gator runs ssl on port 22 and I suspect this may be the root issue on shared hosting servers. To get it fixed for a client he had to get an ssl certificate and then they took care of the port too.
In reply to E. L. Cooper

Re: Moodle Networking: Missing public key

by Hubert Chathi -
Yes, they generate fine without SSL enabled on port 443. In fact, I'm guessing that one of the reasons for the current design of MNet is to avoid depending on SSL -- if you could depend on having SSL keys, the protocol could be simpler.
If hostgator runs HTTPS on port 22, then that is a very odd setup, as port 22 is normally for SSH.
In reply to Loris M

Re: Moodle Networking: Missing public key

by Valery Fremaux -

I have the same issue on a 1.8.6 updated platform on Debian. Just at the same place I have 1.9 recent disribution that generates correctly the public key on quite the same environment.

Someone knows ?

Thanks.

In reply to Valery Fremaux

Re: Moodle Networking: Missing public key

by Valery Fremaux -
Oups I meant 1.8.4 !!
In reply to Valery Fremaux

Re: Moodle Networking: Missing public key

by Valery Fremaux -

I answer to myself :

The solution I found was deleting the mnet_localhost_id value in the mdl_config table so the mnet environment was forced to renew all the environment parameters.

In reply to Valery Fremaux

Re: Moodle Networking: Missing public key

by air Jordan -
I am having the same problem.

I have already set the OPENSSL_CONF variable to point to the openssl.cnf file :

OPENSSL_CONF = D:\moodle\server\php\extras\openssl\openssl.cnf

I am running the "MoodleWindowsInstaller-latest-19.zip" version of Moodle, downloaded this week.

Moodle 1.9
Apache 2.2
Windows XP
PHP 5.2.5
MySQL 5.0.51a

phpinfo() is reporting that OpenSSL is enabled.


will appreciate any help on this matter!
In reply to Valery Fremaux

Re: Moodle Networking: Missing public key

by Noveck Gowandan -
Re: Moodle Networking: Missing public key
by Valery Fremaux - Thursday, April 3, 2008, 05:51 PM

I answer to myself :

The solution I found was deleting the mnet_localhost_id value in the mdl_config table so the mnet environment was forced to renew all the environment parameters.

 

 

Thanks this worked for me. cool

Cheers,
noveck