Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crt and key file location for secure start #79

Open
tsrisudh opened this issue May 4, 2022 · 2 comments
Open

crt and key file location for secure start #79

tsrisudh opened this issue May 4, 2022 · 2 comments

Comments

@tsrisudh
Copy link

tsrisudh commented May 4, 2022

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?

@RiZKiT
Copy link

RiZKiT commented Jul 11, 2022

  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.

@DeusProx
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants