Add test helper script to generate a selfsigned cert

This commit is contained in:
Johannes Zellner
2015-10-27 15:06:53 +01:00
parent 920f04aab3
commit 6118535c4a

View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -eu -o pipefail
CRT="/tmp/test.crt";
KEY="/tmp/test.key";
CSR="/tmp/test.csr";
openssl genrsa 2048 > $KEY
openssl req -new -key $KEY -out $CSR -subj "/C=DE/ST=Berlin/L=Berlin/O=Cloudron/OU=Dev/CN=test.cloudron.io"
openssl x509 -req -days 365 -in $CSR -signkey $KEY -out $CRT