summaryrefslogtreecommitdiff
path: root/catlfish-benchmark/createcert.sh
diff options
context:
space:
mode:
Diffstat (limited to 'catlfish-benchmark/createcert.sh')
-rwxr-xr-xcatlfish-benchmark/createcert.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/catlfish-benchmark/createcert.sh b/catlfish-benchmark/createcert.sh
new file mode 100755
index 0000000..3dbe81f
--- /dev/null
+++ b/catlfish-benchmark/createcert.sh
@@ -0,0 +1,7 @@
+mkdir httpscert
+openssl req -new -newkey rsa:2048 -keyout httpscert/httpskey.pem -out httpsca/httpscert.csr -nodes -subj '/countryName=SE/stateOrProvinceName=Stockholm/organizationName=Test/CN=localhost'
+(
+ cd httpsca
+ openssl ca -in httpscert.csr -keyfile key.pem -out httpscert.pem -batch
+)
+cp httpsca/httpscert.pem httpscert/