added option to set SSL protocol