Ssl protocol fix