Skip to content

Instantly share code, notes, and snippets.

@johnoscott
Created November 12, 2018 23:57
Show Gist options
  • Save johnoscott/e12b6ddf12901e71af3196ee62f78d2e to your computer and use it in GitHub Desktop.
Save johnoscott/e12b6ddf12901e71af3196ee62f78d2e to your computer and use it in GitHub Desktop.
Create a Self-signed Certificate for Development
Credit to : https://github.com/kingkool68/generate-ssl-certs-for-local-development
Here is the sample output after running the script:
sudo ./generate-ssl.sh local.dev
Password:
Generating RSA private key, 2048 bit long modulus
..........+++
..............................................+++
e is 65537 (0x10001)
Enter pass phrase for tmp/local.devCA.key:
Verifying - Enter pass phrase for tmp/local.devCA.key:
Enter pass phrase for tmp/local.devCA.key:
Generating RSA private key, 2048 bit long modulus
...............+++
.........+++
e is 65537 (0x10001)
Signature ok
subject=/C=US/ST=Fake State/L=Fake Locality/O=Fake Company/CN=local.dev
Getting CA Private Key
Enter pass phrase for tmp/local.devCA.key:
All done! Check the your-certs directory for your certs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment