X-Git-Url: http://popeye.lapinbilly.eu/git/?p=openiked-portable;a=blobdiff_plain;f=files%2Fiked.in;fp=files%2Fiked.in;h=e9a257b29381993d7abfaff1f07a20fbef5ba28f;hp=d9a4bac2ae2dcc95d10536501e42061e4bb87b37;hb=47d2d579cd7a9587c0ba39645e23e6cb1b76c54b;hpb=66222bcd8e61490bba6ccfa07d5c7adadccb281c diff --git a/files/iked.in b/files/iked.in index d9a4bac..e9a257b 100644 --- a/files/iked.in +++ b/files/iked.in @@ -52,10 +52,9 @@ iked_precmd() else # Create a key pair if not already present. if test ! -f $iked_privkey; then - /usr/bin/openssl genrsa -out $iked_privkey 2048 - /bin/chmod 600 $iked_privkey - /usr/bin/openssl rsa -out $iked_pubkey \ - -in $iked_privkey -pubout + /usr/bin/openssl ecparam -genkey -name prime256v1 -noout -out "$iked_privkey" + /bin/chmod 600 "$iked_privkey" + openssl ec -in "$iked_privkey" -pubout -out "$iked_pubkey" fi fi