Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly codesign Mac python 2.7.9.pkg so it can work thru OS X firewall #67306

Closed
JamesWahlman mannequin opened this issue Dec 26, 2014 · 4 comments
Closed

Properly codesign Mac python 2.7.9.pkg so it can work thru OS X firewall #67306

JamesWahlman mannequin opened this issue Dec 26, 2014 · 4 comments
Assignees
Labels
3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes build The build process and cross-build OS-mac

Comments

@JamesWahlman
Copy link
Mannequin

JamesWahlman mannequin commented Dec 26, 2014

BPO 23117
Nosy @ronaldoussoren, @ned-deily

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ned-deily'
closed_at = <Date 2020-04-20.15:46:39.488>
created_at = <Date 2014-12-26.23:03:04.193>
labels = ['OS-mac', '3.8', 'build', '3.7', '3.9']
title = 'Properly codesign Mac python 2.7.9.pkg so it can work thru OS X firewall'
updated_at = <Date 2020-04-20.15:46:39.485>
user = 'https://bugs.python.org/JamesWahlman'

bugs.python.org fields:

activity = <Date 2020-04-20.15:46:39.485>
actor = 'ned.deily'
assignee = 'ned.deily'
closed = True
closed_date = <Date 2020-04-20.15:46:39.488>
closer = 'ned.deily'
components = ['Build', 'macOS']
creation = <Date 2014-12-26.23:03:04.193>
creator = 'James.Wahlman'
dependencies = []
files = []
hgrepos = []
issue_num = 23117
keywords = []
message_count = 4.0
messages = ['233121', '233123', '235512', '366846']
nosy_count = 4.0
nosy_names = ['ronaldoussoren', 'ned.deily', 'SilentGhost', 'James.Wahlman']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue23117'
versions = ['Python 2.7', 'Python 3.7', 'Python 3.8', 'Python 3.9']

@JamesWahlman
Copy link
Mannequin Author

JamesWahlman mannequin commented Dec 26, 2014

The app is not code signed properly so when using Python 2.7.9 on OS X 10.10 or any version or OS X I imagine when a user enables the built in OS X firewall and runs Python it complains about allowing the app thru the firewall. The only way to fix since it wasn't signed properly was to install command line tools then typing this in terminal:

sudo codesign -f -s - /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app

please sign this app properly so it works without this annoying workaround. Thanks ;)

@SilentGhost
Copy link
Mannequin

SilentGhost mannequin commented Dec 26, 2014

Closed bpo-23118 as identical issue to this one.

@SilentGhost SilentGhost mannequin added the OS-mac label Dec 26, 2014
@ned-deily ned-deily added the build The build process and cross-build label Dec 26, 2014
@ned-deily ned-deily self-assigned this Dec 26, 2014
@ned-deily
Copy link
Member

Using code signing on OS X sounds like a good idea but does require careful analysis to ensure it is being used correctly. However, in your example, you are using and signing the Apple-supplied system Python. It is not advisable to modify system resources like that. You should open an issue with Apple to request the system Pythons be signed (https://bugreport.apple.com/). I'll keep this issue open for further investigation of signing of Pythons supplied by python.org installers for OS X.

@ned-deily
Copy link
Member

Thanks to the additional requirements of Gatekeeper in macOS 10.15 Catalina, the binaries included in current python.org installers for macOS are now codesigned as of 3.8.2, 3.7.7, and 2.7.18.

@ned-deily ned-deily added 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes labels Apr 20, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes build The build process and cross-build OS-mac
Projects
None yet
Development

No branches or pull requests

1 participant