First crack at optional SSL support