I am trying to create a certificate simply so I can use websockets (wss) because my client is hosted on https. My server is my own and I’m using node.js.
I have been reading through SSL docs and from what I understand I simply need to generate a self-signed cert file and host it on my node.js platform. I had a lot of errors and difficulties using
cmd and various windows compiled SSL binaries, so I’m using Open SSL UI which really seems to work. However I still don’t exactly know what I need since there are so many steps and 4 outputted files.
Here I am going through the process, but I’m not entirely sure what I’m doing or what the final product I need is..
Ok so I guess step 1 is to create an RSA key which is just a jumbled string. No problem.
Alright, generate the cert here I think, self signed. Hoping CA Key File means RSA file.. ? Anyway I click Generate Key and enter some details like country code, province, email, etc. File is generated.
Now I generate a CSR.. seems straight forward.
This seems to be the final step, to sign the CSR. It ends up with yet another file (for a total of 4).
So here I am with 4 aptly named files relative to each step.
Now I google “wss node js” and find this link. It seems I need to have files “key.pem” and “cert.pem”. I’m not sure if I have either of those. Maybe it’s my “ssl_rsa” and “ssl_cert” ? At this point I’m kinda stuck and not sure what I’ve accomplished.
To re-iterate, the goal is to have a self signed ssl cert on my node js server so I can use wss.