Thursday, August 31, 2017

Create local host cert for ssl, and install so that ssl works when debugging locally, in windows7 , with powershell as part of the process.



So I'm teaching my self about ssl, on the way to learning to do SSO to Google suite for edu.

I had to create a ssl web site for testing this process.
here are the steps I used to get the cert stuff working


  1. In powershell run the following command
    1. New-SelfSignedCertificate -DnsName "localhost" -CertStoreLocation "cert:\LocalMachine\My"
      1. Which I got from this Stack Overflow article https://stackoverflow.com/questions/8169999/how-can-i-create-a-self-signed-cert-for-localhost
  2. Then install following the steps in this video
    1. https://www.youtube.com/watch?v=y4uKPUFmSZ0
  3. The close your browser, and press <F5> to start debugging the app afresh.
That's it!