"No identity found" when code signing (after reinstall)

Had to completely reinstall my hard disk and now I’m trying to remember how to set up code signing. I’ve managed to confirm the latest version of Apple’s legalese. Then I downloaded and double-clicked the certificates.

Now I’m getting “no identity found” when trying to sign.

Is there anything else I need to do except download and double-click the certificates?

Here is the main part of the code signing code:

[code] dim appCodeSignature as String = “Developer ID Application: Beatrix Willius”
dim installerCodeSignature as String = “Developer ID Installer: Beatrix Willius”

// Begin cleaning up the permissions
call execute("/bin/chmod -RN " + appPath, "Resetting Permissions")
call execute("/bin/chmod -R 755 " + appPath, "Resetting Permissions")

// Touching the file....
call execute("/usr/bin/touch -acm " + appPath, "Touching the app")

// Begin Codesigning the application
Try
  call DoShellCommand("/usr/bin/codesign -f -s '" + appCodeSignature + "' " + appPath + "/Contents/Frameworks/*.dylib")    
  call DoShellCommand("/usr/bin/codesign -f -s '" + appCodeSignature + "' " + appPath + "/Contents/Frameworks/XojoFramework.framework/Versions/A/XojoFramework")
  call DoShellCommand("/usr/bin/codesign -f -s '" + appCodeSignature + "' " + appPath + "/Contents/Frameworks/XojoFramework.framework")[/code]

Do they show up in Xcode?

Edit: Don’t identities have an identifier key at the end of them?
eg. “Developer ID Application: Beatrix Willius (ABCDE12345)”

Edit again: They do, try adding it to your string.

Does the code signing identity show up in App Wrapper?

That may be the problem:

The Apple developer site showed them. But how do I get this into Xcode?

/Applications/Utilities/Keychain Access.app will show the full identity string

In the keychain the certificate shows up: Developer ID Application Beatrix Willius.

The lovely certificate needs to be revoked and created new.