sozu/lib/assets/tests/generate-certificate.bash

7 lines
261 B
Bash
Executable File

#!/usr/host/bin/bash
function generate-certificate() {
openssl req -new -out certificate-$1.csr -key key.pem -config tls.conf
openssl x509 -req -days 730 -in certificate-$1.csr -signkey key.pem -out certificate-$1.pem -extensions req_ext -extfile tls.conf
}