Update cert instructions

This commit is contained in:
IamTheFij 2021-02-02 17:08:09 -08:00
parent d19df7e3f9
commit 315c486736
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ Rather than host a web server that you would need to trust, this command runs on
This requires you to have `openssl` installed on your machine and, when the page loads for the first time, it will require you to trust the certificate or ignore the warning.
Here's how to do that on [Firefox](https://support.mozilla.org/en-US/kb/error-codes-secure-websites?as=u&utm_source=inproduct#w_self-signed-certificate). On Chrome, you may have to enable `chrome://flags/#allow-insecure-localhost`.
Here's how to do that on [Firefox](https://support.mozilla.org/en-US/kb/error-codes-secure-websites?as=u&utm_source=inproduct#w_self-signed-certificate). On Chrome, you may have to enable `chrome://flags/#allow-insecure-localhost`. If you can't get the link to open in Chrome, you can copy the URL into a different browser and try it there. It should work in Firefox or Safari.
## Setup

View File

@ -96,6 +96,8 @@ func generateSelfSignedCertificates(certPath, keyPath string) error {
"365",
"-newkey",
"rsa:2048",
"-addext",
"subjectAltName=DNS:localhost:8888",
"-keyout",
keyPath,
"-out",