diff options
author | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-13 22:21:55 +0100 |
---|---|---|
committer | Magdalena Grodzińska <mag.grodzinska@gmail.com> | 2020-01-13 22:21:55 +0100 |
commit | 6a2a65319fd804b5d3ca3aa6636fb3dc25db930b (patch) | |
tree | 021901ce94f86bd3a1e2f8bc3fea5f490c3cd5be /scripts | |
parent | 50924560e8829914a4b8d315752c693890210c88 (diff) | |
parent | 12175874524e19d999880302c66b7242de47e482 (diff) |
Merge branch 'query_signer' of github.com:m-chrzan/CloudAtlas into query_signer
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate_keys.sh | 9 |
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 |