Files
cloudron-box/src/routes/test/create_test_certificate.sh
T
2015-10-27 15:06:53 +01:00

12 lines
294 B
Bash
Executable File

#!/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