All Questions
23 questions
0
votes
2
answers
2k
views
Serving over HTTPS with Gunicorn/Flask: ERR_CERT_AUTHORITY_INVALID
Looking for a quick way to serve an API over HTTPS for testing purposes. The API app is created using flask and being served on port 443 using gunicorn.
gunicorn --certfile=server.crt --keyfile=server....
1
vote
0
answers
288
views
Python requests error - SSL UNSAFE_LEGACY_RENEGOTIATION_DISABLED [duplicate]
I am running Python 3.10 in Ubuntu 22.04 and I am getting an error when I try to access a https server using requests.get.
Things I have varied, with no luck
OpenSSL versions: 3.0.0 and 1.1.1l
...
2
votes
1
answer
4k
views
Making my Flask website HTTPS stops me from being able to connect
I am trying to run a Flask website using HTTPS. The website worked perfectly using HTTP, but once I added a certificate I can no longer connect to it.
from flask import Flask
app = Flask(__name__)
@...
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), ...
1
vote
0
answers
220
views
What's the most portable way to make python3 make insecure (e.g. 3DES, RC4) HTTPS requests?
for proper vulnerability scanning it's necessary that python3 speaks insecure HTTPS to avoid overlooking a vulnerable website just because openssl wouldn't talk to it because it was still using SSLv3 ...
0
votes
1
answer
769
views
Invalid certificate warning when running the python HTTPServer
I am trying to run the python3 HTTPServer with self signed certificates. I created the self-signed certificates :
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650
-keyout key.localhost....
1
vote
0
answers
5k
views
Flask application using TLS
I am trying to execute my Flask application over TLS, this is my example:
from flask import Flask
import ssl
app = Flask(__name__)
@app.route('/ping')
def ping():
return 'pong'
if __name__ == '...
2
votes
1
answer
4k
views
Requests in vs code has a wrong caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")
I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this.Thanks!
I want to crawl https through the vs code, but when I run the code, it has a wrong.(...
1
vote
1
answer
366
views
Error with Ubuntu/web.py Exception in thread when using cherryPy
I have a webApp i've been working on and I noticed that every once in a while I will see an error of "Exception in thread CP Server Thread-*" where * = random thread number.This error will occur ...
0
votes
1
answer
214
views
ssl ertificate and https connection in python3
I'm trying to use OpenSSL package in python to build ssl secure connection but I got this error:
socket.gaierror: [Errno 11004] getaddrinfo failed
in conn.connect()
It takes me 2 days to debug, and ...
0
votes
1
answer
251
views
Python ssl/https requests.get call fails
I have the following snippet of python (2.7.14) which is throwing an exception on the requests.get call. This is running on a FreeBSD server, with an apache front end and all http traffic being ...
0
votes
0
answers
61
views
Download xlsx with request w/pem cert
Im having abit of issue downloading an xlsx file over https.
Here my code to scrape the sight to get the download url, but its seems to redirect me to a new site. but when i put the link in my ...
2
votes
2
answers
662
views
django_cas_ng throws ssl error
I'm facing weird SSL error with django CAS client when login request redirecting to a remote CAS server (with HTTPS) for authentication. But I see remote the CAS server is generating a ticket when ...
0
votes
0
answers
444
views
(SSL) Root CA and Client Cert on same machine?
I'm trying to communicate with some software at my company (that I did not write). We are able to set the server certificate, server key, and server CA certificate through configuration.
I generate ...