vod-rtmp/gen-selfsigned.sh

14 lines
330 B
Bash
Raw Normal View History

2021-10-10 09:39:51 -04:00
#!/bin/bash
2021-10-10 11:48:44 -04:00
mkdir -p data/certificates
2021-10-10 09:39:51 -04:00
cd data/certificates
openssl genrsa -out default.key 2048
openssl req -new -key default.key -out default.csr
openssl x509 -req -days 3650 -in default.csr -signkey default.key -out default.crt
cat default.key default.crt >> default.pem
2021-10-10 11:51:28 -04:00
#cleanup
rm default.key
rm default.csr
rm default.crt