Cap fixes for SSL