python - Pip behind a proxy with a custom certificate file -


proxy settings pip can specified via --proxy command line option or in global configuration file (that $home/.config/pip/pip.conf in unix, $home/library/application support/pip/pip.conf in os x, %appdata%\pip\pip.ini in windows).

[global] proxy = [proxy server url] 

however, while custom root certificate file can passed --cert command line option, there not seem way specify custom root certificate in configuration file.

specifying cert = [path cert file] in above global configuration not seem taken account, unlike command line option.

how can globally set pip use certificate file?

we're behind proxy , need cert too. make sure cert file in place cmd , pip (windows) have access to. cert called b.pem

i created folder (which didn't exist already) called:

c:\users\<username>\appdata\roaming\pip 

and added file pip.ini folder. in pip.ini

[global] cert = c:\users\<username>\b.pem 

i tested adding the pip.ini file to:

c:\users\<username>\pip 

which, way, folder created -- , works too. might want give both shot , see works. also, sounds dumb make sure path in pip.ini correct. had typo first time did , drove me insane bit haha. luck !


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -