use ECC as key algorithm for certificates

This commit is contained in:
florian 2024-03-16 13:33:04 +01:00
parent 01794124aa
commit de2b56b8a5
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500
2 changed files with 6 additions and 2 deletions

View file

@ -34,7 +34,9 @@ try:
"-nodes",
"-x509",
"-newkey",
"ed25519",
"ec",
"-pkeyopt",
"ec_paramgen_curve:prime256v1",
"-keyout",
str(cert_path.joinpath("default-server-cert.key")),
"-out",

View file

@ -62,7 +62,9 @@ def generate_cert(first_server: str, days: str, subj: str, self_signed_path: Pat
"-nodes",
"-x509",
"-newkey",
"rsa:4096",
"ec",
"-pkeyopt",
"ec_paramgen_curve:prime256v1",
"-keyout",
server_path.joinpath("key.pem").as_posix(),
"-out",