mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
use ECC as key algorithm for certificates
This commit is contained in:
parent
01794124aa
commit
de2b56b8a5
2 changed files with 6 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue