Skip to content

Instantly share code, notes, and snippets.

@breenie
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save breenie/e927751882f6f834bd3b to your computer and use it in GitHub Desktop.

Select an option

Save breenie/e927751882f6f834bd3b to your computer and use it in GitHub Desktop.
Self sign PHPStorm
#!/usr/bin/env bash
# Lifted from http://systemterror.com/2012/11/self-signing-osx-applications/ with the addition of --deep
# Open Keychain Access and from the menu select Keychain Access > Certificate Assistant > Create a Certificate
# Name: fill in any name you like, e.g. "MyCodesign"
# Identity Type: Self Signed Root
# Certificate Type: Code Signing
codesign --deep -s "MyCodesign" -f /Applications/PhpStorm.app/
# Check signing
codesign -vvv /Applications/PhpStorm.app/
# --prepared:/Applications/PhpStorm.app/Contents/build.txt
# --validated:/Applications/PhpStorm.app/Contents/build.txt
# --prepared:/Applications/PhpStorm.app/Contents/MacOS/idea_appLauncher
# --validated:/Applications/PhpStorm.app/Contents/MacOS/idea_appLauncher
# /Applications/PhpStorm.app/: valid on disk
# /Applications/PhpStorm.app/: satisfies its Designated Requirement
# Boom!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment