Local dev server & trusted SSL Certificate

Local dev server & trusted SSL Certificate

by Nicolas Ndalpe -
Number of replies: 1

Hi Guys,

I searched the whole forum for a solution but couldn't find one. I am in the process of developing my first Moodle Mobile app and hit a wall with Moodle requiring a trusted SSL Certificate to enable the Mobile functionality.

I understand why an online website should have a trusted SSL Cert but this is causing problem for me with an internal dev server. I am running my dev Moodle 3.6.2 install on a vagrant (Debian 9.8) accessible with a self-signed cert on an IP address on Linux Mint.

I am sure someone figured out the SSL problem on dev server before. I don't want to develop and test my app on a production server (we currently have 2000 students) and I can't get a trusted cert on a local dev server.


What do you guys develop your Moodle Mobile app on? What is your setup/workflow?


Any advice/suggestion/article are welcome


Thank you in advance for your support


Take care,

Average of ratings: -
In reply to Nicolas Ndalpe

Re: Local dev server & trusted SSL Certificate

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Nicolas,

the trusted SSL Certificate is an Android/iOS limitation, we can't change that.

You can just use the browser for the early stages of development and then test the development in your production server.

See: https://docs.moodle.org/dev/Moodle_Mobile_development_using_Chrome_or_Chromium

Or, you can hack your internal server config.php so it also works  via http (changing the wwwroot dinamically)

Regards, Juan