TLS setup on Mac and Linux

See this post for a list of steps I followed for getting a basic instance running.