El Cap developers - tutorials for CodeSign and Sandbox?

Discussion in 'Mac Programming' started by gsahli, Feb 14, 2016.

  1. gsahli macrumors 6502a

    gsahli

    Joined:
    Jun 1, 2007
    Location:
    Chicago
    #1
    I need to get up to speed on Apple's latest security requirements.
    Developer notes from Apple aren't helping. Does anyone know where I can get this specific help?
     
  2. hokan macrumors member

    Joined:
    Mar 18, 2014
    Location:
    Sweden
    #2
  3. gsahli thread starter macrumors 6502a

    gsahli

    Joined:
    Jun 1, 2007
    Location:
    Chicago
    #3
    Read both once - weren't specific enough for me to move forward.
     
  4. superscape macrumors 6502a

    superscape

    Joined:
    Feb 12, 2008
    Location:
    East Riding of Yorkshire, UK
    #4
    Are you struggling with any points specifically?
     
  5. gsahli thread starter macrumors 6502a

    gsahli

    Joined:
    Jun 1, 2007
    Location:
    Chicago
    #5
    Thanks for jumping in!
    How about this one - where do I find my personal developer codesign certificate?
    I tried to set an environment variable CODESIGN_IDENTITY and it said my developer ID isn't a valid identity.

    More background - I am "trying" to volunteer to be the package manager of open source print drivers for OS X at openprinting.org. These are CUPS modules called drivers, filters and backends.
    I've had a developer ID for 16+ years, and recently updated from Yosemite to El Cap. Latest XCode is installed. Last time I tried building anything was pre-Mavericks.
     
  6. superscape macrumors 6502a

    superscape

    Joined:
    Feb 12, 2008
    Location:
    East Riding of Yorkshire, UK
    #6
    Sounds like you're doing something a little outside my experience of fairly simple app development. Maybe someone else will be more help than me. However, I'm guessing your certificates will be in Keychain Access. Never had to root them out manually though - that's what's confusing me about your situation.
     
  7. briloronmacrumo macrumors 6502

    briloronmacrumo

    Joined:
    Jan 25, 2008
    Location:
    USA
    #7
    If you have an Apple Developer account go to https://developer.apple.com/membercenter/index.action and login. Pick the certificates option. Personally I have signing certificates( which should be 'login' certificates ) for both the MAS ( Mac App Store ) and Developer ID ( signed apps NOT delivered via MAS ) but you might only need Developer ID. Also before downloading anything open Keychain Access app (/Applications/Utilities ) and create a Certificate Authority file ( Certificate Assisstant>>Create a Certificate Authority ) and save the file on your desktop of some easy place to access. Now do the downloads from the Apple site. IIRC it asks you to select the Certificate Authority file. Go ahead and do that. Download the certificates to your desktop ( where doesn't matter ). You should be able to double-click each cert file in the Finder and add them to your login keychain list. Also they should now be visible in Xcode 7 ( Preferences>>>Accounts ) click on "View Details"[​IMG]
    [​IMG]

    I haven't posted ALL details but getting to this point is important and typically all can be managed inside Xcode from here forward. No time now to post more.
     
  8. gsahli thread starter macrumors 6502a

    gsahli

    Joined:
    Jun 1, 2007
    Location:
    Chicago
    #8
    Yup, that helped.

    Anyone have a tutorial on sandboxing and "requirements" for commandline utilities? (ie, those within the CUPS filter chain.)

    Thanks.
     

Share This Page