fixed ssl socket