1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-23 03:50:59 +02:00
coturn/examples/ca/run.sh
Mészáros Mihály 7d1c1e0f89 Add new test certs
2020-04-28 09:26:31 +00:00

17 lines
318 B
Bash
Executable File

#!/bin/bash
#set -x
# key passwd: coTURN
cp /usr/lib/ssl/misc/CA.pl ./CA.pl
patch < CA.pl.diff
export OPENSSL_CONFIG="-config openssl.conf"
./CA.pl -newca
for i in "server" "client";
do
./CA.pl -newreq-nodes
./CA.pl -signCA
mv newcert.pem turn_${i}_cert.pem
mv newkey.pem turn_${i}_pkey.pem
rm newreq.pem
done;