projects
/
platform
/
upstream
/
gstreamer.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Move files from gst-examples into the "subprojects/gst-examples/" subdir
[platform/upstream/gstreamer.git]
/
subprojects
/
gst-examples
/
webrtc
/
signalling
/
generate_cert.sh
1
#! /bin/sh
2
3
BASE_DIR=$(dirname $0)
4
5
OUTDIR=""
6
if [ $# -eq 1 ]; then
7
OUTDIR=$1/
8
fi
9
10
output=$(openssl req -x509 -newkey rsa:4096 -keyout ${OUTDIR}key.pem -out ${OUTDIR}cert.pem -days 365 -nodes -subj "/CN=example.com" 2>&1)
11
12
ret=$?
13
if [ ! $ret -eq 0 ]; then
14
echo "${output}" 1>&2
15
exit $ret
16
fi