Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Latest commit

 

History

History
40 lines (25 loc) · 1.61 KB

ssl-certificates.md

File metadata and controls

40 lines (25 loc) · 1.61 KB

Create SSL Certificates (macOS)

Documentation > Procedure > SSL Certificates

Table of Contents

  1. Generate locally trusted SSL Certificates

==============================================================================

==============================================================================

Stack Requirement

Install and configure the following services

1. Generate locally trusted Wildcard SSL Certificates

Wildcard SSL Certificates are configured to secure an unlimited amount of first-level sub domains under one main domain. Rather than obtaining a different SSL cert for each individual sub domain, you can instead just get one Wildcard certificate to cover them all.

By default, SSL certificates are located in <HOMEBREW_[nginx]>/certs/ssl/.

Locally trusted SSL certificates must be generated within this directory.

# Create certificat wildcard SSL for *.local.test
mkcert -cert-file $(brew --prefix nginx)/certs/ssl/_wildcard.local.test.pem -key-file $(brew --prefix nginx)/certs/ssl/_wildcard.local.test-key.pem "*.local.test"

For multiple-Domain Wildcard SSL, just add domain at the end of the command:

ie: *.local.test and *.dev.test

mkcert -cert-file $(brew --prefix nginx)/certs/ssl/_wildcard.test.pem -key-file $(brew --prefix nginx)/certs/ssl/_wildcard.test-key.pem "*.local.test" "*.dev.test"