OVMS3/OVMS.V3/components/wolfssl/certs/ed448/gen-ed448-keys.sh

16 lines
375 B
Bash
Executable file

#!/bin/sh
for key in root ca server client
do
openssl genpkey -algorithm ED448 > ${key}-ed448-priv.pem
openssl pkey -in ${key}-ed448-priv.pem -outform DER -out ${key}-ed448-priv.der
openssl pkey -in ${key}-ed448-priv.pem -outform PEM -pubout -out ${key}-ed448-key.pem
openssl pkey -in ${key}-ed448-priv.pem -outform DER -pubout -out ${key}-ed448-key.der
done