Make Sure You Are Square With Your God Before Trying To Merge This

This commit is contained in:
2024-12-15 14:05:04 +02:00
parent cdfe82fc98
commit 7d217e3a93
3 changed files with 7 additions and 10 deletions

View File

@@ -32,5 +32,5 @@ setup_ui(limiter, app)
if __name__ == '__main__':
# SSL context setup
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
context.load_cert_chain('../certs/mycert.crt', '../certs/mycert.key')
context.load_cert_chain('certs/cert.crt', 'certs/cert.key')
app.run(host='0.0.0.0', port=51820, ssl_context=context)

View File

@@ -5,8 +5,8 @@ bind = "0.0.0.0:51820"
workers = 1 # or any other number of worker processes
# SSL/TLS settings
certfile = "../certs/mycert.crt"
keyfile = "../certs/mycert.key"
certfile = "certs/cert.crt"
keyfile = "certs/cert.key"
# WSGI application path
wsgi_app = 'wolServer:app'

View File

@@ -1,12 +1,9 @@
#!/usr/bin/env bash
mkdir -p certs
openssl genrsa -out certs/mycert.key 2048
openssl req -new -key certs/mycert.key -out certs/mycert.csr -subj "/C=/ST=/L=/O=/OU=/CN=/emailAddress="
openssl x509 -req -days 365 -in certs/mycert.csr -signkey certs/mycert.key -out certs/mycert.crt
mkdir -p app/certs
openssl genrsa -out app/certs/cert.key 2048
openssl req -new -key app/certs/cert.key -out app/certs/cert.csr -subj "/C=/ST=/L=/O=/OU=/CN=/emailAddress="
openssl x509 -req -days 365 -in app/certs/cert.csr -signkey app/certs/cert.key -out app/certs/cert.crt
LOCATION="$(pwd)"