Yubico Forum
https://forum.yubico.com/

YubiKey 4 on MAC - ABORT has been sent to the transform
https://forum.yubico.com/viewtopic.php?f=35&t=2832
Page 1 of 1

Author:  Murali [ Wed Jan 24, 2018 11:30 am ]
Post subject:  YubiKey 4 on MAC - ABORT has been sent to the transform

Hi,

I am trying to sign some data with the certificate PrivateKey ( Certificate was loaded into slot 9c(Digital signature) on My YubiKey4 using Yubikey PIV Manager v1.4.2) on Mac High Sierra.

Below OSX APIs were used to sign the data using the certificate,

Code:
    SecTransformRef signingTransform = NULL;
    signingTransform = SecSignTransformCreate(privateKeyRef, NULL);
    NSString *stingSign = @"Some string";
    CFDataRef sourceData = CFDataCreate(
                                        kCFAllocatorDefault,
                                        (const unsigned char *)[stingSign UTF8String],
                                        stingSign.length
                                        );
    CFErrorRef error = NULL;
    SecTransformSetAttribute(
                             signingTransform,
                             kSecTransformInputAttributeName,
                             sourceData,
                             &error);
    if (error)
      {
        NSLog(@"Error : %@",[((__bridge NSError*)error) description]);
      }
   ..... Remaining execution code goes here

but i am getting
Quote:
Error : Error Domain=com.apple.security.transforms.error Code=20 "ABORT has been sent to the transform (Error Domain=Internal CSSM error Code=-25304 "Internal error #ffff9d28 at SignTransform_block_invoke /BuildRoot/Library/Caches/com.apple.xbs/Sources/Security/Security-58286.31.2/OSX/libsecurity_transform/lib/SecSignVerifyTransform.c:411" UserInfo={NSDescription=Internal error #ffff9d28 at SignTransform_block_invoke /BuildRoot/Library/Caches/com.apple.xbs/Sources/Security/Security-58286.31.2/OSX/libsecurity_transform/lib/SecSignVerifyTransform.c:411, Originating Transform=CoreFoundationObject})" UserInfo={NSDescription=ABORT has been sent to the transform (Error Domain=Internal CSSM error Code=-25304 "Internal error #ffff9d28 at SignTransform_block_invoke /BuildRoot/Library/Caches/com.apple.xbs/Sources/Security/Security-58286.31.2/OSX/libsecurity_transform/lib/SecSignVerifyTransform.c:411" UserInfo={NSDescription=Internal error #ffff9d28 at SignTransform_block_invoke /BuildRoot/Library/Caches/com.apple.xbs/Sources/Security/Security-58286.31.2/OSX/libsecurity_transform/lib/SecSignVerifyTransform.c:411, Originating Transform=CoreFoundationObject})}


Do I need to do any extra configuration to execute this code? or am I missing something while setup? same code is working fine if I sign with the same certificate on eToken smartcard.

Please help us.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/