Forums | Mahara Community

Mahara/Moodle integration /
HTTPS


anonymous profile picture
Account deleted
Posts: 21

26 May 2009, 4:04

Hi,

I managed to get a test mahoodle installation to work using a http root. However for the full launch we're going to be using a https WWWroot address and when I've tried creating another installation the xmlrpc authentication will not work and I get the following error:

An error occurred while retrieving the public key from the remote server.
Please ensure that the Application and WWW Root fields are correct, and that networking is enabled on the remote host.

The application and root fields are definitely correct and I've set all of the networking options the same as before.

 Carl.

anonymous profile picture
Account deleted
Posts: 1643

26 May 2009, 17:46

Hi - is the HTTPS certificate 100% valid? Not expired, not self signed? You may want to check both the Moodle and Mahara apache error logs to see if there are more helpful messages there.
anonymous profile picture
Account deleted
Posts: 21

27 May 2009, 5:25

I've checked and the certificates are fine. We use iChain for setting this.
anonymous profile picture
Account deleted
Posts: 1643

28 May 2009, 1:24

And there's nothing in the logs either?

The only other thing I can suggest, if you can't find an answer, is to regenerate both keys (you'll have to delete the Mahara one in the database directly, it's in the config table).

anonymous profile picture
Account deleted
Posts: 21

28 May 2009, 3:46

I've regenerated the key and it made no difference. I did find this in the error logs:

[Tue May 26 09:47:39 2009] [error] [client 192 etc] PHP Notice: Request for http://mysite/mahara failed with HTTP code 409<ul style="text-align: left"><li>line 84 of mnet/lib.php: call to debugging()</li><li>line 148 of admin/mnet/peers.php: call to mnet_get_public_key()</li></ul> in /mysite/moodle/lib/weblib.php on line 6899, referer: https://mysite/moodle/admin/mnet/peers.php

I don't know enough about this stuff to be sure but it seems to still be requesting a http address which has been reset to https via the front end.

anonymous profile picture
Account deleted
Posts: 21

28 May 2009, 6:40

I decided to delete the moodle network host I'd created whilst the server was http (I'd edited it previously to https) and start from scratch but now I can't create a moodle host either. I get a message saying:

There was a problem retrieving the public key.
Maybe the host does not allow Moodle Networking or the key is invalid.

The valid until date of the key is shown as Thursday, 1 January 1970, 01:00 AM (the mahara and moodle keys both show up as being valid in the own settings though).

If I paste the key from the Mahara networking page I then get a pink box saying:

The key is not a valid SSL key.
3: The subject of the certificate:

does not match the host it came from:
.
4: The subject of the certificate:
https://mysite/mahara
does not match the host it came from:
https://mysite/mahara.
4: The subject of the certificate:
https://mysite/mahara
does not match the host it came from:
https://mysite/mahara.

anonymous profile picture
Account deleted
Posts: 1643

30 May 2009, 21:42

That's all nice and confusing! Undecided

I'm afraid I don't have any good ideas other than completely destroying the key on both sides, regenerating the keys (by visiting the networking pages of each application), then starting afresh.

anonymous profile picture
Account deleted
Posts: 21

24 June 2009, 9:13

Unfortunately, destroying the keys hasn't worked.
8 results