codesign

How to obtain codesigned application certificate info

▼魔方 西西 提交于 2019-11-26 20:26:50
问题 I am having a tough time finding an answer to my codesigning issues. We have an application for Mac OS written under Cocoa. Finally - we did our codesigning, but i would like to add an extra security check - within the executable itself. My idea is to validate the fingerprint of the certificate with which the current executable is signed when it is started. If it is missing or invalid (checked against a hardcoded hash within the application) - we shut it down. So far, i haven't been able how

Xcode 4.3: Codesign operation failed (Check that the identity you selected is valid)

廉价感情. 提交于 2019-11-26 19:58:01
问题 After installing Xcode 4.3 I can't validate and distribute application using Organizer. While building, signing and validating in Xcode is OK, the validation in Organizer fails with the message in the title of this question. First, Xcode 4.3 can download provisioning profiles automatically (there's an option in Organizer), but it downloads only development profiles and ignores distribution profiles as if there are none. OK, I downloaded and installed it manually and it appears in Organizer.

iPhone Codesign object file format invalid or unsuitable

你离开我真会死。 提交于 2019-11-26 18:31:58
I accidentally deleted my target in xcode. so i created a new one with the exact same name. in the target settings i again selected the proper codesigning identity but now i can't compile for the device anymore. as soon as i want to build, i get: CodeSign build/Release-iphoneos/myApp.app ....somestuff.... /Volumes/XCodeProj/myApp/build/Release-iphoneos/myApp.app: object file format invalid or unsuitable Connad /usr/bin/codesign failed with exit code 1 I already tried to clean targets. what could cause this problem and how to solve it? May also be an issue with your install. Symlinking to the

security / codesign in Sierra: Keychain ignores access control settings and UI-prompts for permission

浪子不回头ぞ 提交于 2019-11-26 16:56:29
Starting with macOS Sierra, I can't import a codesign-identity into a keychain with /usr/bin/security any more without usr/bin/codesign UI-prompting for access when using this identity. This breaks the packaging scripts of build server. There seems to be no workaround. This affects custom created keychains, but also the login.keychain. Steps to Reproduce: Execute the following commands in Terminal (requires a signing identity to be available to import): security create-keychain -p test buildagent.keychain security unlock-keychain -p test buildagent.keychain security list-keychains -d user -s

Codesign error: Provisioning profile cannot be found after deleting expired profile

旧时模样 提交于 2019-11-26 15:34:29
Tried to rebuild an app that was working just yesterday. Got a message that a profile had expired, so I removed it from the iPod and from iTunes. When I chose a new profile (one with an * in the identifier), I now get an error: Code Sign Error: Provisioning Profile (long string) can't be found. What am I missing? I looked through related questions and didn't see this scenario already. Brad The App Guy Sometimes your xcode project file gets messed up, especially if you have an old project and first created it with an older version of xcode/iphone sdk. What you need to do is open up the project

Error when trying to obtain a certificate: The specified item could not be found in the keychain

被刻印的时光 ゝ 提交于 2019-11-26 15:20:01
问题 I was having a problem with codesigning my apps, so I deleted all the keys from the keychain. Then I went to Certificate Assistant => Request a certificate from a Certificate Authority (to create CSR for a new certificate). So enter my email address and here's what I get: The specified item could not be found in the keychain. What am I doing wrong? P.S. When I'm trying to Create a Certificate Authority , I get the same error. 回答1: I solved it. Ensure you are in the "Certificates" section and

Is there any way to get key hash from signed APK?

做~自己de王妃 提交于 2019-11-26 12:55:59
问题 Is there any way to get key hash from signed APK? We have a signed Android apk file, and we want to find out key hash of this APK, for Facebook SDK. Can we do that by something like jarsigner? Any suggestions? 回答1: For windows users getting the key from openssl, may be tricky some times.. I always use this to find the right signature.. Just paste this code in your onCreate() and run. // Add code to print out the key hash try { PackageInfo info = getPackageManager().getPackageInfo

security / codesign in Sierra: Keychain ignores access control settings and UI-prompts for permission

旧城冷巷雨未停 提交于 2019-11-26 04:33:14
问题 Starting with macOS Sierra, I can\'t import a codesign-identity into a keychain with /usr/bin/security any more without usr/bin/codesign UI-prompting for access when using this identity. This breaks the packaging scripts of build server. There seems to be no workaround. This affects custom created keychains, but also the login.keychain. Steps to Reproduce: Execute the following commands in Terminal (requires a signing identity to be available to import): security create-keychain -p test

Codesign error: Provisioning profile cannot be found after deleting expired profile

北慕城南 提交于 2019-11-26 04:28:57
问题 Tried to rebuild an app that was working just yesterday. Got a message that a profile had expired, so I removed it from the iPod and from iTunes. When I chose a new profile (one with an * in the identifier), I now get an error: Code Sign Error: Provisioning Profile (long string) can\'t be found. What am I missing? I looked through related questions and didn\'t see this scenario already. 回答1: Sometimes your xcode project file gets messed up, especially if you have an old project and first

Re-sign IPA (iPhone)

点点圈 提交于 2019-11-26 00:29:31
问题 I currently build all my applications with hudson using xcodebuild followed by a xcrun without any problems I\'ve received a couple of IPA files from different people that I would like to re-sign with a enterprise account instead of the corporate account (for the app store, or sometimes ad-hoc distributed). My problem is that when I try to resign the app, it won\'t install on my device (and it should since it\'s a Enterprise build). The error message is on the device (not in iTunes) and it