I have first Mac where I successfully sign and notarize my apps for macOS outside AppStore.
On second Mac I downloaded existing "Developer ID Installer" and "Developer ID Application" certificates and installed in KeyChain. Also I downloaded and installed Intermediate Certificate.
When I try to sign anything on second Mac I see the error:
"error: The specified item could not be found in the keychain."
Also I have a file "CertificateSigningRequest.certSigningRequest" saved from first Mac. No idea how to use it.
What I missed in this nightmare to get it work? And keep codesigning on first Mac, too.
The problem here is one of terminology. When folks say “code signing certificate” they usually mean “code signing identity”, where a digital identity is the combination of a certificate and a private key. When you download a signing certificate from Apple you download just that, a certificate. A certificate is only half of the digital identity; you can’t sign anything without the private key. And you can’t download the private key from Apple because Apple doesn’t have a copy. Rather, it’s stored in the keychain on your original Mac.On second Mac I downloaded existing "Developer ID Installer" and
"Developer ID Application" certificates and installed in KeyChain.
The best way to move signing credentials between Macs is via the Xcode’s import/export feature. Go to Xcode > Preferences > Accounts, select your account, and then choose Export Apple ID and Code Signing Assets. Then do the reverse on your other Mac.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"