Forum Problems Installing LAMS: Re: Moodle : odd behaviour (502 error - no trusted certificate)


 
Search: 

3: Re: Moodle : odd behaviour (502 error - no trusted certificate)
In response to 1 04/27/06 08:32 AM
[ Reply | Forward ]
Yes, using ssl.

Moodle and Lams are running on the same server (set up following Clive Gould's blog).

The red error box appeared in moodle as soon as I entered the lams pages ('add lams' from the activities drop down), and stays if I try to "refresh sequence list". I figured out it was a 502 by looking at the moodle code for that page.

The full text of the red box is :

"An unexpected error returned from LAMS server:soapenv:Server.userException: java.rmi.RemoteException: sun.security.validator.ValidatorException: No trusted certificate found; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found! Please contact your administrator."


If I try to "create new sequence" I get a 500 error on the pop-up:
"javax.servlet.ServletException: sun.security.validator.ValidatorException: No trusted certificate found
at org.lamsfoundation.ld.security.web.LoginRequestServlet.doGet(LoginRequestServlet.java:165)

----------
lots of this
----------

root cause

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)

.... etc"

Hopefully I'll figure out how to attach the logs...

Posted by Chris Gibson

Attachments:
4: Re: Re: Moodle : odd behaviour (502 error - no trusted certificate)
In response to 3 04/27/06 03:29 PM
[ Reply | Forward ]
Hi Chris,

> Moodle and Lams are running on the same server

There's really no need to try to run the webservices communication over SSL if both applications are running on the same server.

SSL becomes handy when you need to ensure that data is transmitted securely across networks. But if both apps are in the same server, SSL is just plain overhead as you are encrypted and decrypting the data packages purposely because the data never 'leaves' the server.

The errors that you are getting are happening when the webservices call tries to exchange the certificates or keys to do the handshake (here's more info on how this works). Just like your browser does when you connect to an webserver over SSL, it exchange certificates to begin the encryption... in this case, it seems to me that when Moodle is connecting to LAMS over SSL, the same exchange of certificates is attempting to happen... and it seems that it isn't working there.

I really have no experience running webservices over SSL, but since you are running both in the same server, it might just be easy to run the webservices over normal http instead of https. Can you give this a try?

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to Problems Installing LAMS