Moving the certificate path to a fixed path, e.g. ~/.https-localhost, will prevent the script to generate a new certificate every time the module is updated.
At the moment, just running npm install will reinstall the module generating again the certificate.
A good path can be:
{APPDATA}\https-localhost on Windows
~/.https-localhost on linux
~/Library/Application Support/.https-localhost on darwin
or something similar.
Moving the certificate path to a fixed path, e.g.
~/.https-localhost, will prevent the script to generate a new certificate every time the module is updated.At the moment, just running npm install will reinstall the module generating again the certificate.
A good path can be:
{APPDATA}\https-localhoston Windows~/.https-localhoston linux~/Library/Application Support/.https-localhoston darwinor something similar.