FOSS in, FOSS out: software, process and operations

Creating a Self-signed Code Certificate for XCode

I wanted to make my own build of Textual the other day and needed a code signing certificate to complete the build. I decided to make single, long-lived certificate to that I could reuse for building multiple applications.

  1. Open the “Keychain Access” application

    open -a "Keychain Access"
  2. Application menu > Certificate Assistant > Create a Certificate…

    Create a Certificate

  1. Configure your new certificate

    • Name: Self-signed Applications
    • Identity Type: Self Signed Root
    • Certificate Type: Code Signing
    • [x] Let me override defaults
    • Continue
  2. Change expiration date

    • Validity Period (days): 3650
    • Continue
  3. Just keep hitting Continue to accept defaults from here on out

Note: Xcode seems to cache certificate info on startup. If you had XCode open while you created this certificate, restart it.

I have since used this same certificate to build Growl and a couple of other apps. I’m thinking that I’ll export the public certificate and import it on my other OSX hosts so I can share the compiled binaries from machine to machine without needing to recompile them.


Visit this post’s issue page on GitHub to add a comment.