I'm trying to run my react application in dev mode (created using create-react-app) using https with a certificate and key provided by the Let's Encrypt CA. I've verified that the certificate is valid because it works perfectly on my express backend.
I've enabled https along with the cert and key file directories in .env:
HTTPS=true
SSL_CRT_FILE= "./HTTPS/cert.pem"
SSL_KEY_FILE= "./HTTPS/key.pem"
When I try to run the react frontend with the certificate, I get this error:
The certificate "D:\Projects\Web Dev\Hackathon chat website\Hackathon-2023\client\HTTPS\cert.pem" is invalid.
error:03000096:digital envelope routines::operation not supported for this keytype
How can I fix this?