mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 08:40:05 +00:00
0.6 final
This commit is contained in:
1 parent
7c0581eb97
commit
b89e1932bb
160 files changed
+20534
-4664
No files matched your search
+2
-2
@@ -1,7 +1,7 @@
|
||||
from typing import Dict, Tuple, Any, Optional
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from pathlib import Path
|
||||
import ssl
|
||||
import ssl, settings
|
||||
|
||||
from cryptography import x509
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
@@ -48,7 +48,7 @@ class TLSContext:
|
||||
p_key = self.cert_dir / '{}'.format(self.cert_root)
|
||||
|
||||
if not exists_and_valid(p_crt, p_key):
|
||||
raise ssl.CertificateError()
|
||||
if not settings.DEBUG: raise ssl.CertificateError()
|
||||
|
||||
return p_crt, p_key
|
||||
|
||||
|
||||
Reference in new issue
Block a user