Skip to content

Instantly share code, notes, and snippets.

View five-oclock-heroes's full-sized avatar

five-oclock-heroes

View GitHub Profile
@five-oclock-heroes
five-oclock-heroes / multidomain.ssl.txt
Last active November 22, 2023 06:42
Apache + SSL Multi-domain Configuration
# Description
Piecing together lots of information from different sources, this covers setup and configuration for:
1. Creating a self-signed, mulit-domain certificate for a development environment running OS X.
2. Generating a multi-domain certificate signing request (CSR) for staging/production environments running on CentOS 7.
3. Installing certificate and Apache configuration.
This assumes all environments are running OpenSSL v.0.9.8f or later and Apache 2 with Server Name Indication (SNI) support. SNI is the bit of magic that allows one certificate to be valid to use with Virtual Hosts with different domains on one server. See Apache configuration link in the Sources section below for more information and a much better explanation on how it all works.
# Development