m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_keys.sh9
1 files changed, 9 insertions, 0 deletions
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