fix ssl on OSX