perf(cert_manager): slightly faster self signed generation
Python Lint CI / ruff-format-check (push) Successful in 1m10s
Python Lint CI / ruff (push) Failing after 1m11s
Docker CI / docker-build (push) Successful in 2m17s
Python Lint CI / ty (push) Failing after 1m56s
Python Test CI / coverage (push) Failing after 4m38s
Python Lint CI / ruff-format-check (push) Successful in 1m10s
Python Lint CI / ruff (push) Failing after 1m11s
Docker CI / docker-build (push) Successful in 2m17s
Python Lint CI / ty (push) Failing after 1m56s
Python Test CI / coverage (push) Failing after 4m38s
This commit is contained in:
@@ -106,7 +106,7 @@ class CertManager:
|
||||
"req",
|
||||
"-new",
|
||||
"-newkey",
|
||||
"rsa:4096",
|
||||
"rsa:2048",
|
||||
"-days",
|
||||
str(self.SELF_SIGNED_DAYS),
|
||||
"-nodes",
|
||||
@@ -192,7 +192,7 @@ class CertManager:
|
||||
_: ssl.SSLSocket,
|
||||
/,
|
||||
) -> None | int:
|
||||
if host is None or not valid_host(host):
|
||||
if host is None or is_valid_host(host):
|
||||
return None
|
||||
self.logger.debug("servername callback: %s", host)
|
||||
if not self.exists(host) and not self.create_or_update(host):
|
||||
|
||||
Reference in New Issue
Block a user