gstreamer/webrtc/signalling/generate_cert.sh
2020-05-06 06:01:57 +00:00

10 lines
209 B
Bash
Executable file

#! /bin/sh
BASE_DIR=$(dirname $0)
OUTDIR=""
if [ $# -eq 1 ]; then
OUTDIR=$1/
fi
openssl req -x509 -newkey rsa:4096 -keyout ${OUTDIR}key.pem -out ${OUTDIR}cert.pem -days 365 -nodes -subj "/CN=example.com"