Post

Replies

Boosts

Views

Activity

Reply to security add-trusted-cert asks password twice in some cases: The authorization was denied since no user interaction was possible
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。
Jun ’21