Fixed SSL validation for OS X.