jazzband / jazzband/django-revproxy

https server not work

Open
#116 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
330
Forks
115
PR merge metrics
No merged PRs in 30d

Description

I requested https service, he reported an error.
``` python
HTTPSConnectionPool(host='***, port=443): Max retries exceeded with
url: /** (Caused by SSLError(SSLError("bad handshake:
Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

```
I read the source code and made the following changes, it work, but I want to know, is there an official way to complete the https request?
``` python
class ProxyView(ProxyView):
upstream = 'https://****/'

def __init__(self, *args, **kwargs):
super(ProxyView, self).__init__(*args, **kwargs)
self.http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs=certifi.where())

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.