mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Install test-on self-sign certificate. v4.0.217
This commit is contained in:
parent
c0a7790c91
commit
013fa8ac6c
8 changed files with 184 additions and 9 deletions
|
@ -474,6 +474,15 @@ ln -sf `pwd`/research/api-server/static-dir/index.html ${SRS_OBJS}/nginx/html/in
|
|||
# nginx.html to detect whether nginx is alive
|
||||
echo "Nginx is ok." > ${SRS_OBJS}/nginx/html/nginx.html
|
||||
|
||||
#####################################################################################
|
||||
# Generate default self-sign certificate for HTTPS server, test only.
|
||||
#####################################################################################
|
||||
if [[ ! -f conf/server.key || ! -f conf/server.crt ]]; then
|
||||
openssl genrsa -out conf/server.key 2048
|
||||
openssl req -new -x509 -key conf/server.key -out conf/server.crt -days 3650 -subj "/C=CN/ST=Beijing/L=Beijing/O=Me/OU=Me/CN=ossrs.net"
|
||||
echo "Generate test-only self-sign certificate files"
|
||||
fi
|
||||
|
||||
#####################################################################################
|
||||
# cherrypy for http hooks callback, CherryPy-3.2.4
|
||||
#####################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue