Fixed logic for Ssl again