I have the problem described in this.
I cannot collectstatic
upload from django locally to our static.somesite.com
, because S3 adds s3.amazon.com to the URL and then revokes its own *.s3.amazon.com
certificate. I set the dns pointer for static.somesite.com, which points to the s3 service ip.
I have a set of AWS_S3_SECURE_URLS = False
.
I donβt know how to solve this. This is a complete error message. I fully understand why this is happening, should there be a workaround? On our production server, this works fine. Just can not find the settings.
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'),) ) }
source share