[MapProxy] HTTPS GET Request causes internal error

Reeder, Trent treeder at southernute.com
Wed Feb 8 09:29:21 PST 2017


I am working off an Apache2 Debian server using imagery stored on Google Cloud Platform.  I went through these instructions here (specifically #4):  https://storage.googleapis.com/support-kms-prod/57E913590B6A12FED962C112597B54F99DA7

I was able to get everything working fine using these instructions.  Now I have put in place our own domain and created a self-signed certificate for testing.  I am able to see the imagery through the Mapproxy OpenLayers WMTS client, but I receive an "internal error" when trying to see the GET Capabilities request.  The error is below:

Traceback (most recent call last):
                File "/mapproxy/mapproxy/local/lib/python2.7/site-packages/mapproxy/wsgiapp.py", line 189, in __call__
                                resp = self.handlers[handler_name].handle(req)
                File "/mapproxy/mapproxy/local/lib/python2.7/site-packages/mapproxy/service/demo.py", line 107, in handle
                                capabilities = urllib2.urlopen(url)
                File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                [return opener.open(url, data, timeout)
                File "/usr/lib/python2.7/urllib2.py", line 431, in open
                                response = self._open(req, data)
                File "/usr/lib/python2.7/urllib2.py", line 449, in _open
                                '_open', req)
                File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
                                result = func(*args)
                File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open
                                context=self._context)
                File "/usr/lib/python2.7/urllib2.py", line 1197, in do_open
                                raise URLError(err)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>

Here's my gcs.yaml:
services:
demo:
tms:
  use_grid_names: true
  origin: 'nw'
kml:
  use_grid_names: true
wmts:
wms:
  image_formats: ['image/png', 'image/jpeg']
  md:
  title: MapProxy Google Cloud Storage
   abstract: This is a minimal MapProxy example.
layers:
- name: gcs
   title: Google Cloud Storage
   sources: [gcs_cache]
caches:
gcs_cache:
  grids: [webmercator]
  sources: [gcs]
sources:
gcs:
  type: tile
  grid: webmercator
  url: https://storage.googleapis.com/southern-ute-growth-fund-prod-pyr/%(z)s/%(x)s/%(y)s
  transparent: true
  coverage:
   srs: 'EPSG:4326'
   bbox: [-122.549744,29.420702,-75.723953,45.000002]
  http:
   ssl_no_cert_checks: true
grids:
webmercator:
  base: GLOBAL_WEBMERCATOR
  num_levels: 21

Do you have any advice on how to fix this issue?

Thanks,
Trent

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20170208/52aafe4f/attachment.html>


More information about the MapProxy mailing list