Local Setup for MF development

Hello devs, I am blocked while setting up local development environment for Openmrs SPA while following the guide here The issue am having is to do with certificates. I ran the following command at the root of the module

D:\openmrs\openmrs-esm-patient-registration>openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -config "D:\software\openssl-0.9.8k_X64\bin\openssl.cnf

and filled the different prompts

Followed by the following command

D:\openmrs\openmrs-esm-patient-registration>npm start – --https --cert cert.pem --key key.pem

Despite doing this, Am still hiting this error when i check via chrome devtools

GET https://localhost:8080/openmrs-esm-patient-registration-app.js net::ERR_CERT_AUTHORITY_INVALID

and this one

system.js:586 Uncaught (in promise) Error: Error loading https://localhost:8080/openmrs-esm-patient-registration-app.js (SystemJS Error#3 https://git.io/JvFET#3) at HTMLScriptElement. (system.js:586)

Wondering what I might be missing @dkayiwa @mksd @joeldenning

1 Like

Did you follow the instructions here to trust insecure certificates on localhost?


Thanks @ibacher, Am up and running :cowboy_hat_face:.


Thanks @reagan @ibacher for this it has been of help to me, because i also at certain point being blocked .

1 Like