SSL-related tweaks