Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssl_no_cert_checks setting not taken into account by mapproxy-util autoconfig #581

Open
pbattino opened this issue Jun 7, 2022 · 0 comments

Comments

@pbattino
Copy link

pbattino commented Jun 7, 2022

Context

Using mapproxy-util autoconfig to generate config from a local WMS served under https but with a self-signed certificate,

Expected Behavior

Having a current mapproxy config with the following lines:

globals:
  http:
    ssl_no_cert_checks: True

I expect mapproxy-util to accept a self-signed certificate.

Actual Behavior

I get
mapproxy.client.http.HTTPClientError: Could not verify connection to URL "https://<***REDACTED***>?service=WMS&version=1.1.1&request=GetCapabilities": [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

Possible Fix

Either mapproxy-util should use the same config as mapproxy (at least the 'globals' section) or should have its own flag to disable ssl certificate check.

Steps to Reproduce

Run
mapproxy-util autoconfig --output mapproxy_auto.yaml --capabilities https://.... with an URL served with an untrusted SSL certificate

Context

Either it's a bug or I'm missing something....?

Your Environment

  • Version used: 1.12.0
  • Environment name and version: containerised Python on Debian (image python:3.6.15-slim-buster)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant