keychain

Keychain error -25300 (errSecItemNotFound) when disabling and re-enabling Touch ID

霸气de小男生 提交于 2021-02-07 10:35:20
问题 I save the password to keychain with Touch ID flags: + (void)setPasscode:(NSString *)passcode { CFErrorRef error = NULL; SecAccessControlRef sacObject; sacObject = SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, kSecAccessControlUserPresence, &error); if(sacObject == NULL || error != NULL) { DLog(@"can't create sacObject: %@", error); return; } NSDictionary *attributes = @{ (__bridge id)kSecClass: (__bridge id)kSecClassGenericPassword, (_

Keychain error -25300 (errSecItemNotFound) when disabling and re-enabling Touch ID

泄露秘密 提交于 2021-02-07 10:35:09
问题 I save the password to keychain with Touch ID flags: + (void)setPasscode:(NSString *)passcode { CFErrorRef error = NULL; SecAccessControlRef sacObject; sacObject = SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly, kSecAccessControlUserPresence, &error); if(sacObject == NULL || error != NULL) { DLog(@"can't create sacObject: %@", error); return; } NSDictionary *attributes = @{ (__bridge id)kSecClass: (__bridge id)kSecClassGenericPassword, (_

Swift 4: kSecMatchIssuers keychain search query failing to match X.509 certificate

风流意气都作罢 提交于 2021-01-29 22:24:28
问题 I have a query designed to search for an identity in my keychain so I can delete it from within my swift application. I need to be able to match it by the issuer so I'm making use of the kSecMatchIssuers key in the search query. The apple developer portal states this for matching with kSecMatchIssuers: The corresponding value is of type CFArray, where the array consists of X.500 names of type CFData. If provided, returned certificates or identities are limited to those whose certificate chain

Swift 4: kSecMatchIssuers keychain search query failing to match X.509 certificate

我只是一个虾纸丫 提交于 2021-01-29 21:30:39
问题 I have a query designed to search for an identity in my keychain so I can delete it from within my swift application. I need to be able to match it by the issuer so I'm making use of the kSecMatchIssuers key in the search query. The apple developer portal states this for matching with kSecMatchIssuers: The corresponding value is of type CFArray, where the array consists of X.500 names of type CFData. If provided, returned certificates or identities are limited to those whose certificate chain

Swift 4: kSecMatchIssuers keychain search query failing to match X.509 certificate

╄→гoц情女王★ 提交于 2021-01-29 18:55:02
问题 I have a query designed to search for an identity in my keychain so I can delete it from within my swift application. I need to be able to match it by the issuer so I'm making use of the kSecMatchIssuers key in the search query. The apple developer portal states this for matching with kSecMatchIssuers: The corresponding value is of type CFArray, where the array consists of X.500 names of type CFData. If provided, returned certificates or identities are limited to those whose certificate chain

Authenticate user in Share Extension with Firebase

非 Y 不嫁゛ 提交于 2021-01-29 07:29:58
问题 I've been struggling with his for quite some time now.. I have an app and also a Share Extension . Inside the Share Extension the user needs to be authenticated so he can make requests to my Cloud-Firestore (I set up the security rules so only authorized user can access data). However I am not able to authenticate the user inside my Share Extension . I already checked out Firebase Documentation and this SO-Question but that didn't help me. In my case the user can sign in with Email, Google,

How to programmatically allow access to the KeyChain for my application?

ⅰ亾dé卋堺 提交于 2021-01-28 05:46:46
问题 Need to avoid the conformation dialog. 回答1: The dialog box a security feature of the keychain. Because it stores sensitive user information, the OS takes the position that the user should always have the option to prevent the use of this information so that the user can trust they're not being used without their knowledge. So no, there's no way to prevent the security dialog box from being shown. You can make your user's life easier if you code sign your application. When you update a signed

How to change the expiration date for a self created Certificate Authority in keychain

隐身守侯 提交于 2020-06-28 05:25:44
问题 I'm trying to create a Certificate Authority in Keychain on Mac using stored public & private keys. The output CA has an expiration date of a year from the creation date. I would like to increase the duration of the certificate validity. I can do it on linux with this tutorial by the following command: openssl req -x509 -newkey rsa:2048 -out cacert.pem -outform PEM -days 1825 The command will create a certificate authority that expires in 5 years. Is it possible to do that using keychain or