servor icon indicating copy to clipboard operation
servor copied to clipboard

crt and key file location for secure start

Open tsrisudh opened this issue 3 years ago • 3 comments

I am trying to start with --secure option , i have the crt and key file placed in the directory where i am starting the servor but it is not picking up the file.

Question is where should i put these files in?

tsrisudh avatar May 04 '22 08:05 tsrisudh

  1. Have you named the files servor.crt and servor.key? That is the naming mentioned in the sources and in the readme file (https://github.com/lukejacksonn/servor/blob/master/README.md#generating-credentials).
  2. Alternatively servor generates certificates automatically when they do not exist, but you might need to run sudo servor --secure to add the certificate pa to the trusted store. I used cd ./node_modules/servor/ && sudo ./certify.sh once, because I just wanted to create the certificate without starting servor.

RiZKiT avatar Jul 11 '22 15:07 RiZKiT

Hello! I think I have a similiar issue while trying to add live reload for the development of my pwa and probably not the best knowledge about certificates. I wrote some bash script a while ago to create CA certs with my own ca.conf and generated .cer & pvk files and used serve like npx serve --ssl-cert ./../ssl/dev.cer --ssl-key ./../ssl/dev.pvk -l 8080 to serve my content.

For servor I ported the cer to crt with the command openssl x509 -inform PEM -in dev.cer -out dev.crt. Symlinking or copying while renaming to servor.[crt|key] to hasn't worked. It seems like the server doesn't pick my files up and create dummy certs instead.

DeusProx avatar Aug 19 '22 22:08 DeusProx