This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2013年02月04日 19:32 by christian.heimes, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (6) | |||
|---|---|---|---|
| msg181379 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2013年02月04日 19:32 | |
For effective SSL server cert validation a bundle of trustworthy CA certs is required. Most system ship such a bundle but it's not always possible to access the bundle from Python / OpenSSL. Windows and Mac OS X come into my mind. wget and curl ship a copy of Mozilla's CA cert bundle. The site http://curl.haxx.se/docs/caextract.html explains how to extract the CA certs in PEM format. I suggest that we ship the CA bundle with Python and use a lookup chain: - user defined path to a cacert directory or cacert.pem file - cacert directory or PEM file in the user's home directory: cacertdir = os.path.join(site.USER_SITE, os.pardir, "cacert") cacertfile = os.path.join(site.USER_SITE, os.pardir, "cacert.pem") - system's ca cert directory (/etc/ssl/certs on Linux) - CA cert bundle shipped with the Python installation. |
|||
| msg181382 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2013年02月04日 19:42 | |
Shouldn't it be a duplicate of issue13655? |
|||
| msg181411 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2013年02月05日 03:24 | |
FYI, at the moment, the PSF OS X installers dynamically link with the operating system supplied libssl and use its CA management policies. Issue17128 proposes changing that because Apple has deprecated the use of the system openssl in OS X. |
|||
| msg181415 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2013年02月05日 03:51 | |
Agree this is a duplicate. I also think it’s a feature request. |
|||
| msg181444 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2013年02月05日 15:27 | |
Yes, it's a duplicate of #13665. Sorry, I didn't make a proper search. Although this is a new feature it's a fundament for cert validation. |
|||
| msg181446 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2013年02月05日 15:33 | |
I found a recipe to retrieve CA certs from Window's cert store, see #17134. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:41 | admin | set | github: 61331 |
| 2013年02月05日 16:39:55 | eric.araujo | set | status: open -> closed superseder: Python SSL stack doesn't have a default CA Store resolution: duplicate stage: resolved |
| 2013年02月05日 15:33:58 | christian.heimes | set | messages: + msg181446 |
| 2013年02月05日 15:27:03 | christian.heimes | set | messages: + msg181444 |
| 2013年02月05日 03:51:16 | eric.araujo | set | nosy:
+ eric.araujo messages: + msg181415 |
| 2013年02月05日 03:32:02 | jcea | set | nosy:
+ jcea |
| 2013年02月05日 03:24:11 | ned.deily | set | nosy:
+ ned.deily messages: + msg181411 |
| 2013年02月04日 19:42:07 | pitrou | set | nosy:
+ pitrou messages: + msg181382 |
| 2013年02月04日 19:33:56 | christian.heimes | link | issue12226 dependencies |
| 2013年02月04日 19:32:33 | christian.heimes | create | |