Posts

Post marked as solved
8 Replies
906 Views
Greetings,I'm trying, in a macOS, to perform digital signatures in a list of documents and, currently, facing a problem: for each single document, the method 'SecKeyCreateSignature' is asking for the keychain credentials in order to perform the operation, which goes against the current requirements for the piece of software I'm currently coding.Ideally, I would like to be able to perform a series of signatures for a given Identity, almost like as if it were a "signature session".I've used, primarily, the methods 'SecIdentityCopyPrivateKey' and 'SecKeyCreateSignature' in order to perform such task but, now I'm not sure if this is the correct approach anymore, since I've got weird (and different) results when trying this using a p12 certificate imported in the KeyChain and when using a USB Smartcard for the signature:P12 in the KeyChain: Many credential prompts (relative to the number of items to sign).USB Smartcard with proprietary driver: Only 1 credential prompt (the number of items to sign does not affect the number of prompts);So, regarding the above situation, I'd like some help regarding the following points:Is the pair of functions 'SecIdentityCopyPrivateKey' and 'SecKeyCreateSignature' the most adequate for the current task?Is there any concept/API for "signature sessions" which I've missed?Thanks in advance.
Posted Last updated
.