Fix all deprecation warnings

Note on removal of code related to kCFStreamSS…

According to documentation produced by Apple, the flag
kCFStreamSSLValidatesCertificateChain handles all situations which were
previously set and now considered deprecated.