File: run.sh

package info (click to toggle)
coturn 4.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,240 kB
  • sloc: ansic: 38,387; sh: 1,857; cpp: 778; makefile: 315; sql: 76; perl: 57
file content (16 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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;