Add logic for defining our own cert file serving.
Split SSL logic off into defined type.