הבדלים בין גרסאות בדף "Installation of certificate in pip"

מתוך ויקי נטפרי
קפיצה אל: ניווט, חיפוש
 
שורה 12: שורה 12:
 
  cert = C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt
 
  cert = C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt
  
 +
And in linux according to the above address.
  
  
======Another method======
 
  
Run the following command :
+
NOTE: The above is correct for Windows if you have installed [[Standard certificate installer| Security Certificate Software]] or Linux systems and have been installed [[Installation of certificate in Ubuntu operating system| Certificate as instructed here]].
  
pip config set global.cert "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"
 
  
Note: This command should only be run if you are on Windows and have already installed [[Standard certificate installer|Security Certificate Software]]. In a different case, the certificate must be downloaded to the computer [http://wiki.netfree.link/images/a/ac/Curl-ca-bundle.zip from here], extracted and run the command with the path change according to the location where you saved the certificate on the computer.
+
In other cases, the certificate must be downloaded to the computer [http://wiki.netfree.link/images/a/ac/Curl-ca-bundle.zip from here], extract, and run the command with the path change depending on where you saved the file on your computer.
 +
 
 +
 
 +
===One-time run===
 +
 
 +
To run any command only one-time run with these certificates without changes to the computer, you can add this parameter to the command:
 +
--cert %programdata%\NetFree\CA\netfree-ca-bundle-curl.crt
 +
 
 +
And in linux:
 +
 
 +
--cert /usr/lib/ssl/certs/ca-certificates.crt
  
More options: Adding a parameter that points to the certificate location in each command execution, or adding the certificate location in the software settings file, or canceling the security check, see [https://stackoverflow.com/questions/25981703 here].
 
  
 
==External links==
 
==External links==
 +
 +
[https://stackoverflow.com/questions/25981703 More options and discussion in stackoverflow.com]
 +
 
[https://pip.pypa.io/en/stable/ The pip documentation site]
 
[https://pip.pypa.io/en/stable/ The pip documentation site]

גרסה אחרונה מ־06:42, 23 במרץ 2020

לעברית לחצו כאן

To switch from edit view to read view

To search in the Wiki

Home page > Security certificate > Installation of certificate in pip ‎‎


Create or edit this file:

%AppData%\pip\pip.ini


Add the following lines:

[global]
cert = C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt

And in linux according to the above address.


NOTE: The above is correct for Windows if you have installed Security Certificate Software or Linux systems and have been installed Certificate as instructed here.


In other cases, the certificate must be downloaded to the computer from here, extract, and run the command with the path change depending on where you saved the file on your computer.


One-time run

To run any command only one-time run with these certificates without changes to the computer, you can add this parameter to the command:

--cert %programdata%\NetFree\CA\netfree-ca-bundle-curl.crt

And in linux:

--cert /usr/lib/ssl/certs/ca-certificates.crt


External links

More options and discussion in stackoverflow.com

The pip documentation site