Using webpack-dev-server v 3.11.2 in my create-react-app application. From debugging the source code it appears that the HTTPS config is just an object cert and key. However, if I try to use the exact same values for cert and key to make an HTTPS request to the localhost endpoint that the dev server is running on, I get this Unable to verify the first certificate error.
https://stackoverflow.com/a/60020493/6118986 explains very well why this is happening, but it does not appear that this is done anywhere for HTTPS requests made by the dev server itself. Any ideas what its doing to get around needing a .pem file? I just need to be able to get a signal that the server is ready from another NodeJS process.