From: Jean-Marc Pigeon (Delson) Date: Fri, 18 Jul 2025 22:44:01 +0000 (-0400) Subject: Using ec (eliptic curve) within dummy-certs X-Git-Tag: tag-0.14~51 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=4dac07713e433f3206718a60d3a3a79901912696;p=jmp%2Fmailleur Using ec (eliptic curve) within dummy-certs --- diff --git a/Makefile b/Makefile index ad8ad87..52a8d54 100644 --- a/Makefile +++ b/Makefile @@ -148,7 +148,7 @@ tlsref: -cert certs/localhost-cert.pem \ -key certs/localhost-key.pem \ -starttls smtp \ - -connect $(TESTSRV):$(TESTPORT) + -connect tar1.osukiss.org:25 # -connect mx2.free.fr:25 # -connect mailprod1.safe.ca:587 diff --git a/support/dummy-cert.sh b/support/dummy-cert.sh index b489810..1655ad3 100755 --- a/support/dummy-cert.sh +++ b/support/dummy-cert.sh @@ -24,13 +24,17 @@ for target in $@ PEM1=`mktemp /tmp/openssl.XXXXXX` PEM2=`mktemp /tmp/openssl.XXXXXX` trap "rm -f $PEM1 $PEM2" SIGINT + /usr/bin/openssl ecparam \ + -genkey \ + -name secp384r1 \ + -out $PEM1 answers | \ /usr/bin/openssl req \ - -newkey rsa:4096 \ - -keyout $PEM1 \ + -key $PEM1 \ -nodes \ -x509 \ -text \ + -sha384 \ -days 3650 \ -out $PEM2 2> /dev/null cp $PEM1 ${target}-key.pem