diff --git a/gulpfile.js b/gulpfile.js index e812596..34821b3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -22,10 +22,10 @@ function util_start_browsersync ( ) { return new Promise((resolve, reject) => { browserSync.init({ proxy: { - target: 'https://localhost:3410', + target: 'https://dev.base.digitaltelepresence.com:3410', ws: true, }, - host: 'localhost', + host: 'dev.base.digitaltelepresence.com', open: 'local', https: { key: path.join(__dirname, 'ssl', 'dtp-webapp.key'), diff --git a/ssl/mkcert b/ssl/mkcert index 091f3f4..bad5d23 100755 --- a/ssl/mkcert +++ b/ssl/mkcert @@ -1,7 +1,9 @@ #!/bin/bash -openssl genrsa -out dtp-webapp.key -openssl req -new -out dtp-webapp.csr -key dtp-webapp.key -config openssl.cnf -openssl x509 -req -days 3650 -in dtp-webapp.csr -signkey dtp-webapp.key -out dtp-webapp.crt -extensions v3_req -extfile openssl.cnf +rm -f *crt *key -rm dtp-webapp.csr \ No newline at end of file +openssl genrsa -out dtp-base.key +openssl req -new -out dtp-base.csr -key dtp-base.key -config openssl.cnf +openssl x509 -req -days 3650 -in dtp-base.csr -signkey dtp-base.key -out dtp-base.crt -extensions v3_req -extfile openssl.cnf + +rm dtp-base.csr \ No newline at end of file diff --git a/ssl/openssl.cnf b/ssl/openssl.cnf index d09b85a..9c6acad 100644 --- a/ssl/openssl.cnf +++ b/ssl/openssl.cnf @@ -11,15 +11,15 @@ localityName = Pittsburgh localityName_default = Pittsburgh organizationalUnitName = DTP Technologies, LLC organizationalUnitName_default = DTP Technologies, LLC -commonName = *.digitaltelepresence.com +commonName = dev.base.digitaltelepresence.com commonName_max = 64 -[ v3_req ] +[v3_req] # Extensions to add to a certificate request basicConstraints = CA:FALSE keyUsage = nonRepudiation, digitalSignature, keyEncipherment subjectAltName = @alt_names [alt_names] -DNS.1 = *.digitaltelepresence.com +DNS.1 = *.dev.base.digitaltelepresence.com DNS.2 = localhost \ No newline at end of file