Update nginx.sh

This commit is contained in:
FusionPBX 2017-06-24 08:27:31 -06:00 committed by GitHub
parent 860cce143a
commit 71f34080ac
1 changed files with 2 additions and 2 deletions

View File

@ -64,10 +64,10 @@ if [ .$interface_name = .'auto' ]; then
fi fi
#set the IP= address #set the IP= address
common_name=$(ifconfig $interface_name | grep 'inet ' | awk '{print $2}') common_name=$interface_name
#self signed certificate #self signed certificate
openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 \ /usr/bin/openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 \
-subj "/C=US/ST=Online/L=SelfSigned/O=FusionPBX/CN=$common_name" \ -subj "/C=US/ST=Online/L=SelfSigned/O=FusionPBX/CN=$common_name" \
-keyout /usr/local/etc/nginx/server.key -out /usr/local/etc/nginx/server.crt -keyout /usr/local/etc/nginx/server.key -out /usr/local/etc/nginx/server.crt