Skip to content

use openssl to generate cert authority and site certs

Notifications You must be signed in to change notification settings

ikphilip/sslcertgenerate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Quick SSL Generation

Use these script to quickly create a new Certificate Authority and generate individual site SSL certificates for use on MAMP or local development servers.

Inspired by this site and my inability to remember these openssl instructions.

Requires

  • OpenSSL
  • Ability to install CA root certificate in browser or OS (admin rights)

Instruction

  1. Set local environment variable CERTSDIR where all cert files will be held. By default will install in .cert directory in home folder.
  2. Run ./create-ca.sh with a single parameter which is the name of the CA key and cert. E.g. create-ca.sh rootCA
  3. Then generate site certs using ./create-cert.sh using first parameter to identify the root CA file names and the second as the name for the site certificate files. E.g. create-cert.sh rootCA site.local
  4. To use install the CA root certificate as trusted in your browser or OS. Then enable SSL on the local development server using the generated certificates.

How-To Install Trusted CA Root Certificates

About

use openssl to generate cert authority and site certs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages