use SecTrustSettingsSetTrustSettings also get this error . Maybe because I can't make my application root?
// CFArrayRef trustSettings = (__bridge CFArrayRef)@[x509Settings, otherSettings];
SecKeychainUnlock(NULL, 0, NULL, FALSE);
OSStatus isTrustOk = SecTrustSettingsSetTrustSettings(certificate, kSecTrustSettingsDomainAdmin, NULL);
if (isTrustOk == errSecSuccess) {
CASLog(@"set trusting is OK");
}else {
CASLog(@"set trusting failed!");
CFStringRef errormsg = SecCopyErrorMessageString(isTrustOk, NULL);
NSString *errmsg = (NSString *)CFBridgingRelease(errormsg);
CASLog(@"error:%@",errmsg);
}
SecKeychainLockAll();
// CFRelease(x509Policy);
The authorization was denied since no user interaction was possible. i got this。
Post
Replies
Boosts
Views
Activity
I also got this problem. Did you finally solve it? What caused it. I'm so confused now
FreeBSD had PF FireWall, PF rule catched me.I solved it