Add SSL support with certificate checking.