I've seen the quite useful answer here: create-react-app: how to use https instead of http?
BUT
I'm not sure of the details on how to get this to work with a properly signed SSL cert.
Which version/format of the cert should I be using? PEM, or DER
I've seen some mention that you need to somehow combine the Issuing CA.cer
and Root CA.cer
(which I also have) into the PEM file. Is this correct?
Also, I'm using yarn
and not npm
, trying to use the following:
HTTPS=true SSL_CRT_FILE=QA_SSL_Cert.cer SSL_KEY_FILE=server.key yarn react-scripts start
The server starts, but I get the NET::ERR_CERT_AUTHORITY_INVALID
error when I try to connect. (Without enabling HTTPS=true
the app itself runs just fine.)