Public key unavailable/not visible

Public key unavailable/not visible

by Mark Williams -
Number of replies: 3

I'm trying to authenticate a Mahara install to our Moodle 2.7 using the mahoodle documentation, but when I get to the part regarding XML-RPC SSO, mahara can't find the web root for moodle and the Public key doesn't appear in moodle, though it does suggest that it has been created with a validity of 1970


public key


I've checked that curl and OpenSSL are installed. It's running on IIS.


Anyone any ideas what the issue might be?

Average of ratings: -
In reply to Mark Williams

Re: Public key unavailable/not visible

by Mark Williams -

Looks like it might be an IIS issue


https://moodle.org/mod/forum/discuss.php?d=75556


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?