I have a nodeJs http servers (Windows), created with the standard https.createServer method. I want to use a certificate I bougth from GlobalSign. They gave me a "csr" and a "pem". I saved them in a text file and tried to use them :
this.fHttpServer=https.createServer({
key: 'csrFileFromGlobalSign',
cert: 'pemFileFromGlobalSign'
});
But it gives me an "execution error" in nodeJs : "error:0906D06C:PEM routines:PEM_read_bio:no start line"
- I tried switching the files, same problem
- If I try with files generated by openSSL it works (no error)
What am I missing ?
openssl rsa -outform der -in file.pem -out file.key
, but openSsl generates an error – Henry Kerval Jul 26 '18 at 02:12