Enable HTTPS for CLI portal 41/102141/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Fri, 21 Feb 2020 12:18:03 +0000 (17:48 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Fri, 21 Feb 2020 12:18:03 +0000 (17:48 +0530)
Issue-ID: CLI-246

Change-Id: I7038c724c595608b1fe1714a3e05029c1c0ed1e7
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
deployment/docker/src/main/docker/Dockerfile
deployment/http/lighttpd/lighttpd.conf

index 44ae2ef..d66919a 100644 (file)
@@ -49,7 +49,8 @@ RUN apt-get update && apt-get install -y lighttpd git curl pandoc vim && \
     cp $OPEN_CLI_HOME/http/lighttpd/10-proxy.conf /etc/lighttpd/conf-enabled/ && \
     cp $OPEN_CLI_HOME/installer/cli-*.zip /var/www-data/servers/open-cli/oclip.zip && \
     cp $OPEN_CLI_HOME/http/web/ocomp.crt ~/.gotty.crt && \
-    cp $OPEN_CLI_HOME/http/web/ocomp.key ~/.gotty.key
+    cp $OPEN_CLI_HOME/http/web/ocomp.key ~/.gotty.key && \
+    cat $OPEN_CLI_HOME/http/web/ocomp.key $OPEN_CLI_HOME/http/web/ocomp.crt > /etc/lighttpd/ocomp.pem
     #openssl req -x509 -nodes -days 9999 -newkey rsa:2048 -keyout ~/.ocomp.key -out ~/.ocomp.crt -subj "/C=IN/ST=KA/L=BLR/O=CLI/CN=onap"
 EXPOSE 80
 EXPOSE 8080
index ce904de..32baf8a 100644 (file)
@@ -16,6 +16,8 @@ server.document-root = "/var/www-data/servers/open-cli/"
 server.username             = "www-data"
 server.groupname            = "www-data"
 server.port                 = 80
+ssl.engine                  = "enable"
+ssl.pemfile                 = "/etc/lighttpd/ocomp.pem"
 
 mimetype.assign = (
   ".html" => "text/html",
@@ -47,4 +49,4 @@ server.pid-file             = "/var/run/lighttpd.pid"
 ## Use ipv6 if available
 #include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
 #include_shell "/usr/share/lighttpd/create-mime.assign.pl"
-#include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
\ No newline at end of file
+#include_shell "/usr/share/lighttpd/include-conf-enabled.pl"