From 8103eb7e174c7c0bb33316ae9499bbc0fbb62ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magdalena=20Grodzi=C5=84ska?= Date: Mon, 13 Jan 2020 21:54:45 +0100 Subject: Fix key generation and reading --- scripts/generate_keys.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/generate_keys.sh (limited to 'scripts') diff --git a/scripts/generate_keys.sh b/scripts/generate_keys.sh new file mode 100755 index 0000000..24c2498 --- /dev/null +++ b/scripts/generate_keys.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +cd build/tmp +# generate private key +openssl genrsa -out query_signer.pem 2048 +# convert private key to PKCS8 format +openssl pkcs8 -topk8 -inform PEM -outform DER -in query_signer.pem -out query_signer -nocrypt +# generate public key +openssl rsa -in query_signer.pem -pubout -outform DER -out query_signer.pub -- cgit v1.2.3