Skip to main content
Answer

Mountain Lion - Error importing Signing Certificate from developer.apple.com

  • November 30, 2012
  • 7 replies
  • 19 views

donmontalvo
Forum|alt.badge.img+36

I was able to generate a Certificate Signing Request, and I sent it to Apple, and got a Signing Certificate.

When I try to bring the Signing Certificate into Keychain Access I get this error:

external image link

I found this error on the developer.apple.com site, what broke and how can I fix it? :)

https://developer.apple.com/library/mac/#documentation/security/Reference/keychainservices/Reference/reference.html

external image link

Thanks,
Don

Best answer by jarednichols

Run keychain first aid?

7 replies

Forum|alt.badge.img+24
  • Valued Contributor
  • Answer
  • November 30, 2012

Run keychain first aid?


donmontalvo
Forum|alt.badge.img+36
  • Author
  • Hall of Fame
  • November 30, 2012

@jarednichols Yep, keychain first aid, and did the single user mode dance, and recovery hd to repair disk and fix permissions. Same error.


donmontalvo
Forum|alt.badge.img+36
  • Author
  • Hall of Fame
  • November 30, 2012

I tested on a freshly imaged Mac...it works fine. :)

I'll reimage the problem Mac, since it is used for Mac Packaging.

Thanks,
Don


Forum|alt.badge.img+24
  • Valued Contributor
  • November 30, 2012

Interesting. Maybe you danced wrong. Were you spinning clockwise or anti-clockwise?


donmontalvo
Forum|alt.badge.img+36
  • Author
  • Hall of Fame
  • November 30, 2012

LOL...I tried command line too... :)

Got the same error using the command: $ sudo security add-trusted-cert -k /Users/donmontalvo/Library/Keychains/login.keychain ./devloperID_installer.cer Password: SecCertificateAddToKeychain: The specified keychain is not a valid keychain file. $ GOOD NEWS: I tested your procedure on a freshly imaged Mac, worked like a charm. I’ll have the guys reimage the packaging Mac so they can start signing their installers. U ROCK!!! Don

Here is Jeff Strauss' excellent blog instructions:

http://jeffstrauss.com/?p=82

Don


donmontalvo
Forum|alt.badge.img+36
  • Author
  • Hall of Fame
  • November 30, 2012

Called in a favor from an Apple SE...deleting the login.keychain and then reimporting it from ~/Library/Keychains/login.keychain fixed the problem on the Mac that had the problem.


donmontalvo
Forum|alt.badge.img+36
  • Author
  • Hall of Fame
  • December 1, 2012

Another interesting article...

http://blog.twocanoes.com/post/36906672740/signing-installer-packages-with-apple-3rd-party

Thank you Tim Perfitt and his gang at Twocanoes!

Don