What are the options doing TCP and supporting self-signed server certificates? It's about IMAP/SMTP connections.
We are currently using NSStream. Is there a higher-level API that automatically supports certificates that have been imported and trusted by the user (as hinted at here)?
If not, is connecting with kCFStreamSSLValidatesCertificateChain disabled, and then querying kCFStreamPropertySSLPeerTrust, involving the user in self-made "trust UI" the way to go?
Sample error:
We are currently using NSStream. Is there a higher-level API that automatically supports certificates that have been imported and trusted by the user (as hinted at here)?
If not, is connecting with kCFStreamSSLValidatesCertificateChain disabled, and then querying kCFStreamPropertySSLPeerTrust, involving the user in self-made "trust UI" the way to go?
Sample error:
Code Block language 2021-01-21 14:03:13.673788+0100 pEp[77676:8086560] CFNetwork SSLHandshake failed (-9807) 2021-01-21 14:03:13.673968+0100 pEp[77676:8086560] TCP Conn 0x6000033b89a0 SSLHandshake failed (-9807)
Yes. To do so move away from self-signed certificates and get an issued leaf certificate from a CA that has their root certificate already in the device's trust store. Here is the latest list of CA certificates in the trust store.But is there a way for an app to piggy-back on certificates the user installed globally, accepted, via settings, and trusted
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com