gstreamer/webrtc/signalling/generate_cert.sh

11 lines
209 B
Bash
Raw Normal View History

#! /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"