Lines Matching refs:f
34 _CA_KEY_PATH = os.path.join(_CERT_DIR, f"{_CA_NAME}.key")
35 _CA_CRT_PATH = os.path.join(_CERT_DIR, f"{_CA_NAME}.pem")
43 f"{_CA_NAME}.crt")
44 _CERT_CRT_EXT = ";".join(f"echo \"{ext}\"" for ext in [
50 _CA_CMD = (f"openssl req -new -x509 -days 9999 -newkey rsa:2048 "
51 f"-sha256 -nodes -keyout \"{_CA_KEY_PATH}\" "
52 f"-out \"{_CA_CRT_PATH}\" -extensions v3_ca "
53 f"-subj \"{_CA_SUBJ}\" -addext \"{_CA_EXT}\"")
56 _TRUST_CA_COPY_CMD = f"sudo cp -p {_CA_CRT_PATH} {_TRUST_CA_PATH}"
60 f"-n \"{_CA_NAME}\" -i \"{_TRUST_CA_PATH}\"")
63 _CERT_KEY_CMD = f"openssl genrsa -out \"{_CERT_KEY_PATH}\" 2048"
64 _CERT_CSR_CMD = (f"openssl req -new -key \"{_CERT_KEY_PATH}\" "
65 f"-out \"{_CERT_CSR_PATH}\" -subj \"{_CERT_SUBJ}\"")
67 f"openssl x509 -req -days 9999 -in \"{_CERT_CSR_PATH}\" "
68 f"-CA \"{_CA_CRT_PATH}\" -CAkey \"{_CA_KEY_PATH}\" "
69 f"-CAcreateserial -out \"{_CERT_CRT_PATH}\" "
70 f"-extfile <({_CERT_CRT_EXT};)")
73 _UNDO_TRUST_CA_CMD = f"sudo rm {_TRUST_CA_PATH}"
74 _UNDO_TRUST_CHROME_CMD = f"certutil -D -d sql:$HOME/.pki/nssdb -n \"{_CA_NAME}\""