Post

Replies

Boosts

Views

Activity

Token extension hangs on its own call while signing using P12 certificate /key
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
0
0
612
Jul ’21
Creating signature with the private key from PKCS12 certificate in Token extension.
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.
1
0
798
Jun ’21