All Questions
37 questions
0
votes
0
answers
36
views
How to configure Python ssl server ciphers to match client's
I'm trying to run this simple socket ssl server in python
import socket, ssl
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
bindsocket = socket.socket()
bindsocket.bind(("", ...
0
votes
0
answers
80
views
HTTPS with python and own server apache
we have a python client (on windows) and an apache server (centos)
We want to enable SSL connection between client and server so:
we generated certificate and private key like this on server:
openssl ...
2
votes
0
answers
101
views
Secure_ssl_redirect not working in django
I am trying to redirect my django application which was running previously in http:// to https://
In settings.py file I added:
SECURE_SSL_REDIRECT = True
SECURE_PROXY_SSL_HEADER =( '...
3
votes
1
answer
4k
views
Why does this simple Python HTTPS request throw an SSL error even when given an SSL certificate?
I've recently started an internship at a company with pretty strict IT policies. I'm the only developer at the company and it is clear that I'm running into problems that most likely don't affect ...
1
vote
0
answers
99
views
HTTPSConnectionPool(host='<graphql endpoint>', port=443): Max retries exceeded with url [duplicate]
I am trying to create a graphql client using python_graphql_client package.
My graphQL endpoint is an https link.
But when i try to run a query, I get this error:
exc: HTTPSConnectionPool(host='<...
0
votes
1
answer
557
views
Python https requests runs on python3.9 but crushes on python versions above 3.9
I'm sending some code to a server which has a soap api and a self signed certificate according to firefox.
I'm using this code this works only in python 3.9:
url="https://ws.hph.hu:10446/v1b/...
1
vote
1
answer
2k
views
Certificates won't work in Python requests
I am trying to create a little Python script to send data to a server using the requests module in Python. To make it a bit more secure i want to use self signed certificates made in a program called ...
1
vote
2
answers
5k
views
How to get more details on a requests.exceptions.SSLError?
When I request a URL with an expired HTTPS certificate I do not get a meaningful error from requests. Instead it gives me a cascade of "ssl.SSLError: A failure in the SSL library occurred".
...
1
vote
0
answers
776
views
Python script to check ROOT SSL Certificate
I want to write a script that can verify a root CA certificate from its subordinate CA. Currently, I can only return the lowest level certificate.
(For example, if you view the certification path for ...
3
votes
0
answers
3k
views
how to https hosting in python http.server.SimpleHTTPRequestHandler
I am using python http.server.SimpleHTTPRequestHandler to create an http server using below code
Handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(("", PORT), ...
2
votes
0
answers
653
views
Is it safe to disable SSL verification for downloading files? (Python)
I am wanting to download a file from a very well known website. I checked the certificate for the website and it is there, with proper expiration date and all, but when trying in Python:
url_data = '...
1
vote
1
answer
1k
views
How to make a Flask API on GCP run on https instead of http
I have a flask API which is running on a google VM instance but currently it is running on http. So for instance, http://36.137.283.44:5000/get_values is the url for one endpoint where 36.137.283.44 ...
0
votes
1
answer
346
views
Unable to verify the CA signed SSL certificate python web server
Here is the sample code for my python web server:
Python web server code (not full version)
class LogRequests(BaseHTTPRequestHandler):
def do_GET(self):
print("GET request received ...
0
votes
0
answers
1k
views
Adding a .pem certificate to flask (dev server)
I have a developed a flask app (i am rookie in flask dev). I have hosted on my test server, now the requirement is to establish a secured https connection . I have a .pem file from my organizations's ...
2
votes
2
answers
4k
views
Certificate Verify Failed when using Requests in Python with a self signed certificate
I'm using python to access Aruba switches through an API. I'm wanting to use HTTPS so that my traffic (that is sending usernames and passwords for verification) is encrypted:
import requests
import ...