Posts

Showing posts with the label IIS

IIS: Make Your site work with https on local IIS.

To make your site work on the https you need to follow some steps: Open the IIS Select the local Server on left side Tree(rootnode) Now on right hand side area Double Click on Server Certificates After that on right hand side panel select the Create Self Signed Certificate. Remeber this certificate is not a trusted certificate. That will open an dialog and give a friendly name and then click OK. Now on the left panel tree navigate to the Default Web Site or the website and select it,which you want to run on https. Now on the right hand side panel click on Binding that will open a dialog. Click the Add button will open another dialog in that dialog you need to slect the type "https". Then select the certificate you created ob the step 4 and 5 and click OK. Now you can brows your localhost with https as https://localhost/ Now enjoy using https in your local environment to test the application.

IIS: Created self signed certificates using makecert.exe for local IIS

Image
You have learned how to run the local IIS on https with self signed certificate with my previous blog http://iistipsandtricks.blogspot.in/2015/08/make-your-site-work-with-https-on-local.html. Now you want to get rid of the error you get when you first time get when you run your site with a untrusted self signed certificate. Also if you are working with SAS platform then you need to send authentication token which require trusted certificate.  These are steps below to make it work. 1. Open the Developer command prompt for visual Studio. 2. Run the below 2 commands on that window command prompt. makecert -r -n "CN=localhost" -b 01/01/2000 -e 01/01/2099 -eku 1.3.6.1.5.5.7.3.1 -sv localhost.pvk localhost.cer cert2spc localhost.cer localhost.spc pvk2pfx -pvk localhost.pvk -spc localhost.spc -pfx localhost.pfx You can do selecting all the 2 commands and paste to the command window and hit enter. 3. This above command will ask you 3-4 times for the password...

IIS: Publish Project to remote IIS with Web Deploy.

Image
To Push a build is too much hectic task. Like you need to publish to local machine and then copy to the remote IIS. Then can be eased by directly push the build to the remote IIS through web deploy. For this there is 2 things you need configure on in the remote IIS and other on your project file. Configuration on Remote IIS To make this whole thing work you need to install Microsoft Web Deploy and you need to choose all the feature to be install on the machine. you need to add the feature of IIS Management Service. for this you need to make sure you have added Management tool feature to the IIS. Configuration on the Project side In the Visual Studio right click on the solution and make a rebuild. Then right click on the web project and select the menu "Publish". On the Profile tab Drop down list select New Custom Profile. Give a name to the publish Profile and click OK. Then click next and on the next tab "Connection" sele...