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 !
Apr ’22