Profile-Manager-CLI
Profile-Manager-CLI copied to clipboard
[Errno 8] _ssl.c:507: EOF occurred in violation of protocol
I tried to run the script on my Mac with Mac OS X 10.10 with python version Python 2.7.8 to connect to my server (also Mac OS X 10.10) but I get the error [Errno 8] _ssl.c:507: EOF occurred in violation of protocol.
The error seems to appear in line 50 in the file profilemanager.py during authentication:
r = self.opener.open(self.create_request(path, data, type))
When I turned on the debug option in profilemanager.py the output was:
To MDM: /auth
None
[Errno 8] _ssl.c:507: EOF occurred in violation of protocol
I googled for this problem but can't figure it out. Of corse the profile manager is running and working on the server. The web interface of the profile manager is reachable from the browser.
I hope you can help me out. Thanks in advance!
Looks like you're using @andrewzirkel's 10.10 fix, which is great, it needs testing! Sounds like it's a bug in Python's ssl library: http://stackoverflow.com/questions/14102416/python-requests-requests-exceptions-sslerror-errno-8-ssl-c504-eof-occurred
We no longer use Profile Manager so I'm afraid I can't test.
Hi, I just came across this. Looks like it's a lack of SNI support in the 2.7 python. One possibility is moving to requests instead of urllib2 for the http calls.
i'm getting EOF occurred in violation of protocol (_ssl.c:600) on python3.4 (MAC OS X El-Capitan) i did set the verify to False but it does not resolves the issues also installed some packages like openssl and etc!