Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular cli add sslkey certificate

//On the angular.json file add the configurations "sslKey", "sslCert" and "ssl" with the value "true"
//Don't forget to create a folder "ssl" on the root of your project, and add the certicate (.crt) and key (.key) 

"serve": {
          "options": {
            "sslKey": "./ssl/server.key",
            "sslCert": "./ssl/server.crt",
            "ssl": true
          },
          ...
}
 
PREVIOUS NEXT
Tagged: #angular #cli #add #sslkey #certificate
ADD COMMENT
Topic
Name
3+4 =