osx - Python "app transport security" error under El Capitan -


some of python shell scripts newly throwing security errors under apple osx 10.11, el capitan. seems new app transport security doesn't how scripts calling http resources in plain text, rather using https.

fetching http://blahblah.com     python[5553:5648168] app transport security has blocked cleartext http (http://)  resource load since insecure. temporary exceptions can configured  via app's info.plist file. 

how might go fixing this? there no https resource can call, i'm stuck http. advice apple make exception in app's info.plist file, python script invoked shell script, there no info.plist file edited.

ideas? root problem seems webkit2png, in python. non-https requests being blocked ats, , there no info.plist modify.

i found solution here worked me: https://apple.stackexchange.com/questions/210588/how-does-one-configure-a-temporary-exception-to-ats-on-el-capitan-and-fix-webkit

first make sure have version of webkit2png new enough have --ignore-ssl-check option. version 0.5 not have option.

second, need edit source file , add couple lines of code shown here: https://github.com/bendalton/webkit2png/commit/9a96ac8977c386a84edb674ca1518e90452cee88

finally use option indicated in solution linked above (copied here convenience):

webkit2png --ignore-ssl-check [options] [http://example/] 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -