forked from mtusi2026/mtusi2026lab7
Implement Lab 7 security and infrastructure
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import os
|
||||
import ssl
|
||||
|
||||
|
||||
def service_ssl_context() -> ssl.SSLContext:
|
||||
ca_file = os.getenv("TLS_CA_FILE", "/run/tls/ca.crt")
|
||||
return ssl.create_default_context(cafile=ca_file)
|
||||
Reference in New Issue
Block a user