Skip to content

Instantly share code, notes, and snippets.

View alive-vietnam-ti's full-sized avatar
💭
I may be slow to respond.

joseph tran alive-vietnam-ti

💭
I may be slow to respond.
View GitHub Profile
@alive-vietnam-ti
alive-vietnam-ti / ApacheHTTPSConfig.md
Created July 26, 2021 06:04 — forked from nrollr/ApacheHTTPSConfig.md
Enable SSL in Apache for 'localhost' (OSX, El Capitan)

Enable SSL in Apache (OSX)

The following will guide you through the process of enabling SSL on a Apache webserver

  • The instructions have been verified with OSX El Capitan (10.11.2) running Apache 2.4.16
  • The instructions assume you already have a basic Apache configuration enabled on OSX, if this is not the case feel free to consult Gist: "Enable Apache HTTP server (OSX)"

Apache SSL Configuration

Create a directory within /etc/apache2/ using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys: