SecPKCS12Import PKCS12 Certificate Import Failing After macOS Sequoia Upgrade (Error Code -25293)

I'm encountering an issue after upgrading to macOS Sequoia when trying to import a PKCS12 certificate. The following code, which worked fine on previous macOS versions, now returns an error code -25293 (errSecAuthFailed):

NSDictionary *options = @{(__bridge id)kSecImportExportPassphrase: @""};
CFArrayRef items = NULL;
OSStatus status = SecPKCS12Import((__bridge CFDataRef)pkcs12Data, (__bridge CFDictionaryRef)options, &items);

The same build, using the same certificate and import process, works perfectly on earlier versions of macOS. Has anyone else experienced this issue or found a workaround for certificate imports on macOS Sequoia?

Answered by DTS Engineer in 805648022

I think this has the same underlying cause as the issue we’re discussing in this thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I think this has the same underlying cause as the issue we’re discussing in this thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Filed a feedback: FB15270972

SecPKCS12Import PKCS12 Certificate Import Failing After macOS Sequoia Upgrade (Error Code -25293)
 
 
Q