mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-28 18:14:19 -05:00
* manual python 3.8 removals * poetry * pyupgrade * black * isort * manually tidy imports * work around shadowed type * catch up build network protocol files for pyupgrade changes * placate pylint * re-enable 20.04 * placate flake8
33 lines
854 B
Python
33 lines
854 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
from typing import Any
|
|
|
|
|
|
def public_ssl_paths(path: Path, config: dict[str, Any]) -> tuple[Path, Path]:
|
|
return (
|
|
path / config["ssl"]["public_crt"],
|
|
path / config["ssl"]["public_key"],
|
|
)
|
|
|
|
|
|
def private_ssl_paths(path: Path, config: dict[str, Any]) -> tuple[Path, Path]:
|
|
return (
|
|
path / config["ssl"]["private_crt"],
|
|
path / config["ssl"]["private_key"],
|
|
)
|
|
|
|
|
|
def private_ssl_ca_paths(path: Path, config: dict[str, Any]) -> tuple[Path, Path]:
|
|
return (
|
|
path / config["private_ssl_ca"]["crt"],
|
|
path / config["private_ssl_ca"]["key"],
|
|
)
|
|
|
|
|
|
def chia_ssl_ca_paths(path: Path, config: dict[str, Any]) -> tuple[Path, Path]:
|
|
return (
|
|
path / config["chia_ssl_ca"]["crt"],
|
|
path / config["chia_ssl_ca"]["key"],
|
|
)
|