To continue working on the Simon Johnsons website - Ideally, you need a solution that will simulate the conditions that you will see during the production process, and changing the code will not do this and can be dangerous if you forget to take the code before deploying it.
You will need a self-signed certificate. If you use IIS Express, you will have one of them, you just need to find it. Open Firefox or any other browser you like and go to your dev website. You should be able to view certificate information from a URL string, and depending on your browser, you should be able to export the certificate to a file.
Then open MMC.exe and add the Certificate snap-in. Import the certificate file into the repository of trusted root certificate authorities and all that you need. It is important that he gets to this store, and not to any other store, such as "Personal". If you are unfamiliar with MMC or certificates, there are numerous websites with information on how to do this.
Now your computer as a whole will implicitly trust any certificates that it created itself, and you will not need to add code to deal with this specifically. When you move on to production, it will continue to work if you have the correct valid certificate installed there. Do not do this on a production server - this would be bad, and it would not work for clients other than those on the server itself.
Nigel Thomas Apr 12 '16 at 2:22 2016-04-12 02:22
source share