Fixed default SSL socket use #1030