Added SSL Config Option
Added additional error check