Post

Replies

Boosts

Views

Activity

Comment on accessing private key without username/password from daemon
Hi, I was trying to use XPC connection in order to pass the generation of NSURLCredential to a user application (which is the XPC server in this scenario). while i'm able to obtain the NSURLCredential object from a user application, i fail to pass it in the XPC reply callback with the following reason: Exception: decodeObjectForKey: Object of class "NSURLCredential" returned nil from -initWithCoder: while being decoded for key <no key> it looks like this object require implementation of method -initWithCoder since it's an opaque object. Perhaps you can give me some guidelines about how to do that, I'm not sure I understand the entire contents of NSURLCredentials. BTW, This is how I create the object on the client application :   NSURLCredential *certificateBasedCredential = [NSURLCredential credentialWithIdentity:certificates:persistence:]; Thanks !
Topic: Privacy & Security SubTopic: General Tags:
Apr ’22
Comment on NSURLSession fails on TLS due to "TLS Trust evaluation failed(-9802)"
Hi and thanks for the valuable info. However, I really want to be able to identify the exact issue with my certificate. Perhaps you can guide me where to search in the logs ?
Replies
Boosts
Views
Activity
Jan ’23
Comment on Passing NSURLCredential in XPC connection fail in decoder
Your suspicion is correct. I simply followed your steps : Select the digital identity, choose File > Export Items, and export as a .p12. Do you think that If I use the programmatic approach of SecItemExport, then I may get different results ?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Comment on accessing private key without username/password from daemon
Hi, I was trying to use XPC connection in order to pass the generation of NSURLCredential to a user application (which is the XPC server in this scenario). while i'm able to obtain the NSURLCredential object from a user application, i fail to pass it in the XPC reply callback with the following reason: Exception: decodeObjectForKey: Object of class "NSURLCredential" returned nil from -initWithCoder: while being decoded for key <no key> it looks like this object require implementation of method -initWithCoder since it's an opaque object. Perhaps you can give me some guidelines about how to do that, I'm not sure I understand the entire contents of NSURLCredentials. BTW, This is how I create the object on the client application :   NSURLCredential *certificateBasedCredential = [NSURLCredential credentialWithIdentity:certificates:persistence:]; Thanks !
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22