Ges*_*ias 2 django amazon-s3 boto amazon-web-services
我有一个在此票证中描述的问题.
我无法在collectstatic本地上传django,static.somesite.com因为S3将s3.amazon.com添加到网址,然后使自己的*.s3.amazon.com证书无效.我为static.somesite.com设置了一个dns指针,指向s3服务的ip.
我有AWS_S3_SECURE_URLS = False这套.
不知道如何解决它.这是完整的错误消息.我完全理解为什么会这样,必须有一个解决方法?在我们的生产服务器上,这很好用.无法找到设置.
boto.https_connection.InvalidCertificateException:
Host static.somesite.com.s3.amazonaws.com returned an invalid certificate
(remote hostname "static.somesite.com.s3.amazonaws.com" does not match certificate)
{
'notAfter': 'Apr 9 23:59:59 2015 GMT',
'subjectAltName': (
('DNS', '*.s3.amazonaws.com'),
('DNS', 's3.amazonaws.com')),
'subject': (
(('countryName', u'US'),),
(('stateOrProvinceName', u'Washington'),),
(('localityName', u'Seattle'),),
(('organizationName', u'Amazon.com Inc.'),),
(('commonName', u'*.s3.amazonaws.com'),)
)
}
Run Code Online (Sandbox Code Playgroud)
一直在挖掘我一直在使用的传输应用程序的代码.看来除了我的django项目设置之外,它正在从某个地方获取配置设置并覆盖它们.
几年前,我正在测试谷歌云存储的谷歌应用程序引擎测试项目,这意味着我在全球安装了"Gsutils"软件包.你猜怎么着?Gsutils也使用Boto!所以一旦我发现我可以设置一个boto配置文件,我就开始寻找它了.坐在OSX上没有文件〜/ .boto可以在Finder中看到,或者在我的主目录中列出文件时ls -al.唉,当我尝试使用nano ~/.botovoilá 创建它时!从我使用Gsutils开始就有很多设置.
进入那里后,我禁用了
#https_validate_certificates = True
设置,现在一切都像魅力一样.
| 归档时间: |
|
| 查看次数: |
814 次 |
| 最近记录: |