Public key unavailable/not visible

Re: Public key unavailable/not visible

by Mark Williams -
Number of replies: 2
In reply to Mark Williams

Re: Public key unavailable/not visible

by Jonathan P. -

Hi it's probably too late, but just in case someone else is looking for that answer, have a look at this Mnet FAQ

which says :

This could be because PHP cannot find the openssl.cnf file on your server - this is a very common issue on windows servers. To address this you must set the path to this file in your config.php file - first find the openssl.cnf file on your server then add it's location into your config.php file like this:

   $CFG->opensslcnf = 'C:/apache2/bin/openssl.cnf';

In reply to Jonathan P.

Re: Public key unavailable/not visible

by SVI eSolutions -

HI, 

I am also experiencing many problems.
I have followed the steps of the mnet documentation as much as I can and added the $CFG->opensslcnf = in my config page.

But when I try to save I always get the following if the dubugin is on :

Request for https://myfakemoodlesite.com returned unexpected result

  • line 138 of \mnet\lib.php: call to debugging()
  • line 115 of \admin\mnet\peers.php: call to mnet_get_public_key()

Lower in the page the current public key is empty.

If I print the error is seems to refer to curl error 51 : CURLE_PEER_FAILED_VERIFICATION

I'm not sure what else to try. Could the fact that both my moodles are on the same server be a problem? 

Or that they have the same secruity certificate?

Any suggestions?