From 429df3ab0481307e7cdac50bbd0afa6a1ff3fa77 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 30 Mar 2022 16:09:52 -0700 Subject: fix: new certificate loading method --- Makefile.toml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) (limited to 'Makefile.toml') diff --git a/Makefile.toml b/Makefile.toml index 80be522..83ab6d3 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -29,31 +29,23 @@ dependencies = ["fmt", "check", "clippy"] command = "openssl" args = [ "req", - "-newkey", - "rsa:2048", "-new", - "-nodes", - "-keyout", - "locus_private.pem", - "-out", - "locus_public.pem", "-subj", - "/CN=fuwn.me" -] - -[tasks.fixkey] -command = "openssl" -args = [ - "x509", - "-req", + "/CN=fuwn.me", + "-x509", + "-newkey", + "ec", + "-pkeyopt", + "ec_paramgen_curve:prime256v1", "-days", "365", - "-in", - "locus_public.pem", - "-signkey", - "locus_private.pem", + "-nodes", "-out", - "locus_pair.pem" + ".locus/windmark_public.pem", + "-keyout", + ".locus/windmark_private.pem", + "-inform", + "pem", ] [tasks.run] -- cgit v1.2.3