Posts

Run the angular 2+ application with HTTPS in local machine

 Why HTTPS         By default if you run the angular 2+ application in your local machine means it will run in the local host only i.e http://localhost:4200. In some cases we need run our local application into https protocol like  https://localhost:4200. I was face this scenario when I developed the PWA application angular 2+. Because you can able to test or run the PWA application with help of HTTPS protocol only. So, that I read some articles and implement successfully in my local machine. In this post I've shared the steps to implement the HTTPS protocol in your local machine. Steps 1. We have to create the identify information. For this we need to create one folder in that create one text file and name it as certificate.cnf . The below one is the sample file, You can copy the same thing and edit the necessary information according to your purpose. [req] default_bits = 2048 prompt = no default_md = sha256 x509_extensions = v3_req distinguished_name = dn [dn] C = GB ST = London