SSL Setup

Fixes #122. Handles both a generated self-signed certificate as well as a CA signed certificate.