Fix for connection issue with ssl #1073