Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ip-2014/7e1f147d68411e9850510b8f45e60b2a to your computer and use it in GitHub Desktop.

Select an option

Save ip-2014/7e1f147d68411e9850510b8f45e60b2a to your computer and use it in GitHub Desktop.

Revisions

  1. Simon Willison revised this gist Dec 25, 2016. No changes.
  2. Simon Willison created this gist Jan 29, 2016.
    22 changes: 22 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    With the OS X firewall enabled, you can remove the "Do you want the application "python" to accept incoming network connections?" message.

    Create a self-signed certificate.

    Open Keychain Access. Applications > Utilities > Keychain Access.
    Keychain Access menu > Certificate Assistant > Create a Certificate...
    Enter a Name like "My Certificate".
    Select Identity Type: Self Signed Root
    Select Certificate Type: Code Signing
    Check the Let me override defaults box
    Click Continue
    Enter a unique Serial Number
    Enter 7300 for Validity Period.
    Click Continue
    Click Continue for the rest of the dialogs
    Now sign your application

    codesign -s "My Certificate" -f $(which python)

    In the dialog that appears, click "Allow".

    Note that when using a virtual environment, you need to activate the virtual environment before running this command.