run.sh 318 B

12345678910111213141516
  1. #!/bin/bash
  2. #set -x
  3. # key passwd: coTURN
  4. cp /usr/lib/ssl/misc/CA.pl ./CA.pl
  5. patch < CA.pl.diff
  6. export OPENSSL_CONFIG="-config openssl.conf"
  7. ./CA.pl -newca
  8. for i in "server" "client";
  9. do
  10. ./CA.pl -newreq-nodes
  11. ./CA.pl -signCA
  12. mv newcert.pem turn_${i}_cert.pem
  13. mv newkey.pem turn_${i}_pkey.pem
  14. rm newreq.pem
  15. done;