Posts

Post not yet marked as solved
3 Replies
0 Views
My code will actually be running as a service (LaunchDaemons), so it needs to run with sudo. This service should add/delete keys and certificate to keychain.
Post marked as solved
5 Replies
0 Views
My plan is to run it as service (using 'sudo launchctl load'). I finally realized that when running as root it complains the root certificate is not trusted (by running SecTrustEvaluateWithError). I decided to delete the root certificate and install it again. I guess there was some bug in the keychain which show it as trusted although it was treated as not trusted. Thanks eskimo for your help.
Post marked as solved
5 Replies
0 Views
Hi, I get intermediate certificate in the TLS handshake and have the issuer CA certificate installed in my system keychain. I'm not handling the authentication challenge (no delegate) and let NSURLSession default implementation to deal with it. I see the following error: ATS failed system trust Connection 1: system TLS Trust evaluation failed(-9802) Connection 1: TLS Trust encountered error 3:-9802 Connection 1: encountered error(3:-9802) An SSL error has occurred and a secure connection to the server cannot be made.