To secure your website you can use SSL and certificates. In this post I will explain in detail how to setup your site to use a certificate, including the details of installing your own Certification Authority. Finally I will show you some C# code to work with certificates.
Part 1 will show you how to install the Certificate Authority on a Windows 2003 machine, part 2 is about creating a new website,
part 3 shows how to request a webserver certificate,
part 4 shows you how to send the request to the Certification Authority,
part 5 shows you how the CA processes the request,
part 6 shows you how to download and install the certificate on the website,
part 7 shows you how to create a virtual folder.
Part 8 shows you how to test ths site together with some coding examples in C#.
Sometimes your ASP.NET tab disappears in the IIS manager. To show this tab again follow the steps below.
- Stop the IIS Admin service (and any services that depend on it)
- Open C:WINDOWSsystem32inetsrvMetaBase.xml in notepad or your favorite XML Editor. DELETE the line that reads ‘Enable32BitAppOnWin64=”TRUE”‘
- Start -> Run -> iisreset
First add the MSMQ component to your windows installation. Go to Add Remove programs; Add Windows Components; Select Aplication Server; press Details and check Message Queuing
Press Ok; press Finish
Configure the Message and Queing service to restart when errors occur.
- Go to “Start -> Administrative tools -> Computer Management”.
- Expand “Services and Applications”.
- Sselect “Services”.
- Select “Message Queuing”; right click and select “Properties”.
- Select the “Recovery tab”.
- Select “Restart the Service” for first, second and subsequent failures.
Create a new C# Forms project / solution with Visual Studio 2008. Add a reference to the System.Messaging .NET dll.
Add two Forms to the project. Place in the constructor of Form1 the following code:
mq = new System.Messaging.MessageQueue(@".Private$MyQueue");
mq = MessageQueue.Create(@".Private$MyQueue");
Queue2 q2 = new Queue2();