I want to create signature with the private key from PKCS12 certificate in Smart Card Token extension. (Mac OS)
I am importing certificate through SecPKCS12Import() API in my app which adds the key to keychain also.
Later when I try to pair identity with user it hangs on calling SecKeyIsAlgorithmSupported() API.
The trace from Activity Monitor Sample shows this:
Activity Monitor Sample
Please suggest where I am doing wrong Or am I following whole process correctly. I tried to find some samples but couldn't.
Post
Replies
Boosts
Views
Activity
In my token extension when I get a call to sign - (nullable NSData *)tokenSession:(TKTokenSession *)session signData:(NSData *)dataToSign and I call SecKeyCreateSignature() func to get signature it again calls above tokenSession function and hangs there. I am dealing with P12 certification/Key for signing. I am stuck here and need some clues to proceed.
See code stack
Sample of TokenExtension.txt
I have a MacOS APP with Objective-C & C/C++ code build on XCode 8.3.3 with some dependent libraries also. I want to migrate it to latest XCode version.
What ere the steps I should follow? Do I need to go upgrading version by version.
Please direct me to any thread or post related to this case.
Thank you in advance.