提交 35615769 编写于 作者: A Aaron Xiao 提交者: Jiangtao Hu

Common: Move HTTPS utils to global to be shared with Dreamview.

上级 a33f4138
...@@ -18,7 +18,7 @@ node_modules ...@@ -18,7 +18,7 @@ node_modules
# generated files # generated files
generatedViews generatedViews
generatedScripts generatedScripts
modules/hmi/conf/keys modules/common/data/ssl_keys
# database/log files # database/log files
*.sqlite *.sqlite
dreamview.log dreamview.log
......
server { server {
https { https {
enabled: false enabled: false
server_key: 'modules/hmi/conf/keys/server.key' server_key: 'modules/common/data/ssl_keys/server.key'
server_cert: 'modules/hmi/conf/keys/server.crt' server_cert: 'modules/common/data/ssl_keys/server.crt'
} }
} }
modules { modules {
......
...@@ -4,7 +4,7 @@ set -x ...@@ -4,7 +4,7 @@ set -x
Domain=apollo.hmi Domain=apollo.hmi
IP=127.0.0.1 IP=127.0.0.1
KEYS_DIR="$(dirname $0)"/../conf/keys KEYS_DIR="$(dirname $0)"/../modules/common/data/ssl_keys
# Clear KEYS_DIR and cd into it. # Clear KEYS_DIR and cd into it.
rm -fr "${KEYS_DIR}" rm -fr "${KEYS_DIR}"
...@@ -27,7 +27,6 @@ function GenerateServerKeys() { ...@@ -27,7 +27,6 @@ function GenerateServerKeys() {
OPENSSL_CONF_FILE="./openssl.conf" OPENSSL_CONF_FILE="./openssl.conf"
echo "[req]req_extensions = v3_req echo "[req]req_extensions = v3_req
[v3_req] [v3_req]
basicConstraints = CA:TRUE
subjectAltName = @alt_names subjectAltName = @alt_names
[alt_names] [alt_names]
IP.1 = ${IP} IP.1 = ${IP}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册