Pages

Friday, 26 July 2019

local-cert-generator

A set of scripts to quickly generate a HTTPS certificate for your local development environment.

HTTPS for localhost

A set of scripts to quickly generate a HTTPS certificate for your local development environment.

How-to

  1. Clone this repository and cd into it:
git clone https://github.com/dakshshah96/local-cert-generator.git
cd local-cert-generator
  1. Run the script to create a root certificate:
sh createRootCA.sh
  1. Add the root certificate we just generated to your list of trusted certificates. This step depends on the operating system you're running:
    • macOS: Open Keychain Access and import the root certificate to your System keychain. Then mark the certificate as trusted.
    Trust root certificate
    • Linux: Depending on your Linux distribution, you can use trustupdate-ca-certificates or another command to mark the generated root certificate as trusted.
Note: You may need to restart your browser to load the newly trusted root certificate correctly.
  1. Run the script to create a domain certificate for localhost:
sh createSelfSigned.sh
from https://github.com/dakshshah96/local-cert-generator

No comments:

Post a Comment