info: Installing or renewing ssl on iis7

Posted on Updated on

The steps for configuring Secure Sockets Layer (SSL) for a site are the same in IIS 7 and  IIS 6.0

Their  are few may ways to install or renew SSL for the domains running under IIS server, generally in the real time environment ssl  provider willl sent the file with exetension .key .csr .crt .ca  in Linux there are nothing complicated but here we have to follow few more setps, one of the easyst way that I mentntioned here.

First thing we may have to import the certificate file over IIS management console it only support .pfx file so we have to gerate the file from the given files like .crt .key. , to complete this jon there is a simple command line tool available on both windows and linux called openssl

The below steps will provide .pfx file :

#Password is optional
root@server [~]# openssl pkcs12 -export -in mydomain.com.crt -inkey mydomain.com.key -name mydomain.com -passout pass:PASSWORD -out mydomain.com.pfx
  1. Open the IIS Manager by going to Start > Administrative Tools > Internet Information Services (IIS) Manager.
  2. Under Connections click your server’s Hostname.
  3. In the center window pane, scroll down to and Double-Click the Server Certificates icon.


4. On the right window pane under Actions click the link to Import.iis7-csr-2

5. Select the new .pfx file and import with name. Now we can see the the imported file under server certificate

6. Under the Connections window pane, expand your server’s computer name, then click the Site that you want to enable SSL on.

7. Actions menu click Bindings…


8. then select the binding for https and click ‘Edit‘.


9. In the ‘SSL certificate:’ drop-down menu select your newly-installed SSL Certificate by it’s friendly name, and click Ok.


New SSL Certificate should now be installed on server.

Error: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

Posted on Updated on

To resolve that issue please follow steps below –

1. Unregister all the versions of ASP.NET with command “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –ua”.

2. Delete the ASPNET account from “Local Users and Group – Users”.

3. Then registere ASP.NET 2.0 with IIS using “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –i”.

4. Give permissions to the ASPNET account using “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –ga machinename\ASPNET”.

5. Reset the IIS and that resolved the issue for ASP.NET 2.0.

6. Register ASP.NET 1.1 with IIS as well using command “C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis –i”.

7. Reset the IIS.


Run the following from your command line to reset IIS registry settings for aspnet user.

C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727>aspnet_ regiis -i

After following the above steps we configured virtual directory versions as required and test both ASP.NET 1.1 and ASP.NET 2.0 application.

Everything will work after that.