servor
servor copied to clipboard
crt and key file location for secure start
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?
- Have you named the files
servor.crtandservor.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). - Alternatively servor generates certificates automatically when they do not exist, but you might need to run
sudo servor --secureto add the certificate pa to the trusted store. I usedcd ./node_modules/servor/ && sudo ./certify.shonce, because I just wanted to create the certificate without starting servor.
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.