Add ssl toggle

@nanliu this is the line you might hate. I'm open to a different way to do it, this was convenient? But it reminds me of bad Perl.