Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
szekelygobe /
Created Feb 25, 2021 — forked from ethicka/
Local virtualhost SSL websites on Mac OS Sierra

Local virtualhost SSL websites on Mac OS Sierra

These instructions will guide you through the process of setting up a wildcard SSL for your local virtualhosts for offline development. Most importantly, this configuration will give you the happy, green lock in Chrome.

These instructions have only been tested on Mac OS Sierra using the pre-installed Apache and PHP versions. These instructions also assume you have virtualhosts set up locally already.

Configuring SSL

View PHP - Adding leading or trailing numbers or characters to string
// source :
str_pad($string_to_complate, 2, '0', STR_PAD_LEFT);