New topic: 

Codesign: Nightmare!

<http://forums.realsoftware.com/viewtopic.php?t=46039>

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        kermit          Post subject: Codesign: Nightmare!Posted: Sat 
Nov 24, 2012 6:26 pm                         
Joined: Mon May 30, 2011 12:56 am
Posts: 556                I decided that a Mac Developer licence wasnt a bad 
price at $99 if it got me a certificate and the ability to shut Gatekeeper up.

I followed the instructions (I am sure) to get 
AppleWWDR certificate
Developer Certificate
Installler Certificate

During this I ended up with :
Just a developer certificate, so I tried again to be told that the request had 
been used once and couldnt be used again.
A second request just for an installer certificate, which appears to have 
worked as I now have one of each.


But everything I try to do with those and code sign results in a message saying 
I cant use them to codesign the app


I can create a self-certified certificate, and that actually works to a degree, 
but obviously this is weaker than a 'proper' one.
Right now I dont actually have any value from my purchase.

Can anyone tell me the right sequence of steps to to take to get the 
certificates that actually work?
(Ive been trying to use the 'steps' shown in a post about getting onto the App 
Store, but since thats not where I need to be, I found it hard to split App 
Store and non App Store instructions)   
                             Top                ktekinay          Post subject: 
Re: Codesign: Nightmare!Posted: Sat Nov 24, 2012 6:35 pm                        
         
Joined: Mon Feb 05, 2007 5:21 pm
Posts: 252
Location: New York, NY                How exactly are you trying to codesign? 
What command(s) are you using, and what is the wording of the error message?

If it helps, I'm doing what you describe with Apple's certificates and haven't 
seen a problem. I signed a version of RegExRX for the App Store with that store 
certificate, and another bound for my web site with the developer certificate. 
I have a post-build script and a MAS module that does the heavy lifting for me. 
All I have to do is set a boolean constant or two before I build to get the 
version I want.      
_________________
Kem Tekinay
MacTechnologies Consulting
http://www.mactechnologies.com/

Need to develop, test, and refine regular expressions? Try RegExRX.
  
                             Top                kermit          Post subject: 
Re: Codesign: Nightmare!Posted: Sat Nov 24, 2012 6:41 pm                        
 
Joined: Mon May 30, 2011 12:56 am
Posts: 556                Terminal session.

Then:

The Certificate I got from Apple:
codesign -f -s 'com.apple.idms.appleid.prd.394a63475....stuff'  
'/users/me/Desktop/myfolder/MyApp.app'

..."this identity cannot be used for signing code"

The self-cert one
codesign -f -s 'Developer ID Installer: MYName' 
'/users/me/Desktop/msfolder/MyApp.app'

.. works but its just me...   
                             Top                ktekinay          Post subject: 
Re: Codesign: Nightmare!Posted: Sat Nov 24, 2012 6:46 pm                        
         
Joined: Mon Feb 05, 2007 5:21 pm
Posts: 252
Location: New York, NY                The name of the first certificate is not 
the one you need. The one you're looking for will be in the form of "Developer 
ID Application: YourName", which is why it isn't working for you.      
_________________
Kem Tekinay
MacTechnologies Consulting
http://www.mactechnologies.com/

Need to develop, test, and refine regular expressions? Try RegExRX.
  
                             Top                kermit          Post subject: 
Re: Codesign: Nightmare!Posted: Sun Nov 25, 2012 4:32 am                        
 
Joined: Mon May 30, 2011 12:56 am
Posts: 556                You know how it goes.
I read your post, Kem, and immediately went into 
'Huh: I already tried that so many times its not true, although I just didnt 
put it in my post because it would just confuse matters, and I want to narrow 
it down to simple black and white cases' mode.

Then I gave myself a kick and said 'why ask for help if you dont listen to it'
So I went back and used the 

codesign -f -s 'Developer ID Application: my name' 
'/users/me/Desktop/myfolder/Myapp.app'

version as you suggested, ...And damn it, it worked.  
 ( at least I got all the right kind of noises.. replacing signature among them)
Thank you very much for responding and the right answer.



So I guess I use the 'Installer' one on the end DMG package?
Did I read something about having to codesign bits of the App bundle 
individually, or is the 'App as a bundle' enough to do the job?   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to