SecPKCS12Import fails in Tahoe

We are using SecPKCS12Import C API in our application to import a self seigned public key certificate. We tried to run the application for the first time on Tahoe and it failed with OSStatus -26275 error.

The release notes didn't mention any deprecation or change in the API as per https://developer.apple.com/documentation/macos-release-notes/macos-26-release-notes.

Are we missing anything? There are no other changes done to our application.

Error -26275 is errSecDecode, which usually indicates a problem with the PKCS#12 itself. This is not necessarily in the PKCS#12 wrapper, but could be in the certificate inside that wrapper. But, regardless…

The same code with the same PKCS#12 file works on macOS 15, right?

If so, you should definitely file a bug about this. Make sure to include:

  • A test PKCS#12 file
  • A sysdiagnose log taken shortly after reproducing the problem

Once you’re done, post the bug number here and I’ll do some more digging.

Share and Enjoy

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

SecPKCS12Import fails in Tahoe
 
 
Q