Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

certifi package requirement messes up access to google storage via requests #47

Open
odedfos opened this issue Dec 30, 2015 · 1 comment

Comments

@odedfos
Copy link

odedfos commented Dec 30, 2015

In setup.py

install_requires=[
        "certifi",
    ],

This causes errors when using the requests library to access https://storage.googleapis.com

requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Even though not directly your bug, having this as a requirement in your setup messes up the environment so I think you should consider solving this as well.

@graingert
Copy link
Contributor

probably best to hardcode:

-----BEGIN CERTIFICATE-----
MIIEmDCCA4CgAwIBAgICAa4wDQYJKoZIhvcNAQELBQAwRDELMAkGA1UEBhMCVVMx
FjAUBgNVBAoTDUdlb1RydXN0IEluYy4xHTAbBgNVBAMTFEdlb1RydXN0IFNTTCBD
QSAtIEc0MB4XDTE0MTAyODAzMDQwOVoXDTE2MTAzMTExMjgzM1owZTELMAkGA1UE
BhMCSUUxEDAOBgNVBAgTB0lyZWxhbmQxDzANBgNVBAcTBkR1YmxpbjEYMBYGA1UE
ChMPSkxJWkFSRCBMSU1JVEVEMRkwFwYDVQQDDBAqLmxvZ2VudHJpZXMuY29tMIIB
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArKXFSMO4HzRqxxPu80y5Fv1a
FQCp09l4YGpjA6rORXcDsaKDJKuMfQVmepNsrbYlYRCvMdoQn3wUXwE3AlqbsR4G
HlSv3tWtTNfqWBe5tAo0aN/mtmw9b1LMJxXpReZgEDejXi7UktOiQ5aWF+0EZyec
ojcNSoEshX8YuaqdMLb2afai0o5gtI1w3hj3p/lKKYsHoiOzmyJ1q0ycP5jtsfNP
Tq8wfA4IET6l3OOrsUZlI0k+jXSq8o9s/JeNIX7SE5+hBh2pi4kKoM4Z9y0WJ+RU
7ogi8NSRaHtmP4tbAy1nDnz4UZAxbIEF8Gv/7auI3G6PiUQV81F7YczaQvgd4QID
AQABo4IBcTCCAW0wHwYDVR0jBBgwFoAUrDLtWsng3jCckFhVJmP2cqZUX+MwVwYI
KwYBBQUHAQEESzBJMB8GCCsGAQUFBzABhhNodHRwOi8vZ3cuc3ltY2QuY29tMCYG
CCsGAQUFBzAChhpodHRwOi8vZ3cuc3ltY2IuY29tL2d3LmNydDAOBgNVHQ8BAf8E
BAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMCsGA1UdEQQkMCKC
ECoubG9nZW50cmllcy5jb22CDmxvZ2VudHJpZXMuY29tMCsGA1UdHwQkMCIwIKAe
oByGGmh0dHA6Ly9ndy5zeW1jYi5jb20vZ3cuY3JsMAwGA1UdEwEB/wQCMAAwWgYD
VR0gBFMwUTBPBgpghkgBhvhFAQc2MEEwPwYIKwYBBQUHAgEWM2h0dHBzOi8vd3d3
Lmdlb3RydXN0LmNvbS9yZXNvdXJjZXMvcmVwb3NpdG9yeS9sZWdhbDANBgkqhkiG
9w0BAQsFAAOCAQEAgHqTvGl1EqxapPWe2B0Nlz0czytSSwt4q9tTImF8c/4kgsFZ
vUdQA2BoWEZpOy54AvNrhAW9vp5rzLfee5s5gxu1WkhcXm8v+oQM5yyJi5A1Yq3U
UaiZIIpzdK6WWc1yNoZuw8A35JM27z/QBLLqq/bHpqV89q2B446QnMAGEzMevlap
iCW/gR4wS0WvvATh7UC6mwmGph8l5YNjvyEdi74gv0D6jPp3LC1GTVBdZRt2DQRO
mY78w2YZL+Zg1bU31IsJ1ydMDEnFtdTwSUnsxbQUspHQ8kxHS6ZzY+g2NQER866K
kfs3LYL6K/jYv2peJWM8CirmYtUuC8Vanb2hKw==
-----END CERTIFICATE-----

instead

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants