diff --git a/tls/gen_ca_creds.sh b/tls/gen_ca_creds.sh old mode 100644 new mode 100755 index fecd176..f121f3e --- a/tls/gen_ca_creds.sh +++ b/tls/gen_ca_creds.sh @@ -1,17 +1,18 @@ #!/bin/bash if [ $# -ne 1 ] then echo "Usage: `basename $0` " exit fi echo "Generating TLS credentials for CA \"${1}\"" echo "Please make sure you generate enough entropy!" certtool --generate-privkey >ca.key echo "cn = ${1}" > ca.tmpl echo "ca" >> ca.tmpl echo "cert_signing_key" >> ca.tmpl echo "expiration_days = 10000" >>ca.tmpl certtool --generate-self-signed --load-privkey ca.key --template ca.tmpl --outfile ca.crt rm ca.tmpl + diff --git a/tls/gen_relay_creds_ca.sh b/tls/gen_relay_creds_ca.sh old mode 100644 new mode 100755 index 62b82a6..8eb7acc --- a/tls/gen_relay_creds_ca.sh +++ b/tls/gen_relay_creds_ca.sh @@ -1,26 +1,27 @@ #!/bin/bash if [ $# -ne 1 ] then echo "Usage: `basename $0` " exit fi if [ ! -f "ca.key" ] || [ ! -f "ca.crt" ] then echo "Please generate the CA key/certificate pair first." exit fi echo Generating TLS credentials for MSRP relay \"$1\" echo Please make sure you generate enough entropy! certtool --generate-privkey >msrprelay.key echo "cn = ${1}" >> ${1}.tmpl echo "dns_name = ${1}" >> ${1}.tmpl echo "tls_www_server" >> ${1}.tmpl echo "tls_www_client" >> ${1}.tmpl echo "encryption_key" >> ${1}.tmpl echo "signing_key" >> ${1}.tmpl echo "expiration_days = 10000" >>${1}.tmpl certtool --generate-certificate --load-privkey msrprelay.key --load-ca-certificate ca.crt --load-ca-privkey ca.key --template ${1}.tmpl --outfile msrprelay.crt rm ${1}.tmpl + diff --git a/tls/gen_relay_creds_self.sh b/tls/gen_relay_creds_self.sh old mode 100644 new mode 100755 index 158e6ed..230306b --- a/tls/gen_relay_creds_self.sh +++ b/tls/gen_relay_creds_self.sh @@ -1,20 +1,21 @@ #!/bin/bash if [ $# -ne 1 ] then echo "Usage: `basename $0` " exit fi echo Generating self-signed TLS credentials for MSRP relay \"$1\" echo Please make sure you generate enough entropy! certtool --generate-privkey >msrprelay.key echo "cn = ${1}" >> ${1}.tmpl echo "dns_name = ${1}" >> ${1}.tmpl echo "tls_www_server" >> ${1}.tmpl echo "tls_www_client" >> ${1}.tmpl echo "encryption_key" >> ${1}.tmpl echo "signing_key" >> ${1}.tmpl echo "expiration_days = 10000" >>${1}.tmpl certtool --generate-certificate --load-privkey msrprelay.key --generate-self-signed --template ${1}.tmpl --outfile msrprelay.crt rm ${1}.tmpl +