Rajesh kumar’s Blog

If you have knowledge, let others light their candles at it.

How to Import SSL certificate in Windows 2003 server

Posted by Rajesh Kumar on January 12, 2010

Follow the steps given below to import the SSL certificate available in Windows 2003 server (To know how to create the self signed SSL in Windows 2003, please read the article(click here) on my blog).

1. Click on Start -> Run.
2. Type “mmc” and hit Enter key.
3. Click on File -> “Add/Remove Snap-in”.
4. Click on “Add” button.
5. Select “Certificates” option and click on “Add” button.
6. Select “Computer account” and click on “Next” button.
7. Click on “Finish” button and then on “Close” button.
8. Click on “Ok” button.
9. Expand “Certificates” and “Trusted Root Certification Authorities”.
10. Select the sub-item “Certificates”.
11. Click on the right certificate from the right side window.
12. Right-click on that certificate -> All Tasks -> Export…
13. Click on “Next” button.
14. Choose the required format and click on “Next” button.
15. Type the file name and path to save.
16. Click on “Finish” button.

That’s all you need to do. Now you can send the “.cer” file to anyone who want to install it on their local systems.

Please feel free to let me know if you have any questions.

Posted in Uncategorized | 3 Comments »

How to create self signed SSL Certificate in Windows 2003 server

Posted by Rajesh Kumar on January 12, 2010

Have you ever thought of hosting your web sites in a secured protocol (https) than general http? To host the web site or web services in https, we need to have the certificate issued by CA, Verisign, GoDaddy etc and these are very expensive.

Microsoft is so kind to give the feature to generate a temporary certificates from Windows 2003 server which can be used for development purpose. In this article, I am going to explain you how to create and assign the SSL certificate for a web site. For this tutorial, we are going to create and assign SSL for “Default Web Site

Follow the steps given below in Windows 2003 server:

1. Click on Start -> Run.
2. Type “inetmgr” and hit Enter key. IIS manager should be opened now.
3. Expand the “Internet Information Services” on left side window till you see your desired Web site.
4. Right-click on “Default Web Site” and choose “Properties”.
5. In “Default Web Site Properties” window, click on “Directory Security” tab.
6. click on “Server Certificate” button.
7. Click on “Next” button.
8. Select “Create a new certificate”.

Note: If this option is not available, then you might be having a pending certificate. Either create a new web site or delete the pending request by following the wizard and start from step 4.

9. Select “Prepare the request now, but send it later” and click on “Next” button.
10. Type the name for certificate (let’s say it as “TestCertificate“) and click on “Next” button.
11. Type your “Organization” and “Organization unit” and click on “Next” button.
12. Type the common name (it can be any) and click on “Next” button.
13. Type Geographical Information and click on “Next” button.
14. Enter the certificate file and path, click on “Next” button.
15. Click on “Next” and then “Finish” button.
16. Click on “Web Site” tab and then type “443” as the port number in “SSL port:” field.
17. Now select “Directory Security” tab again.
18. Click on “Edit” button under “Secure communications” group.
19. Check “Require secure channel (SSL)” option and click on “Ok” button.
20. Click on “Ok” button to finish it completely.

With this, we have created a new certificate and configured it to the web site. From, now onwards you can start accessing your site with “https“.

Please feel free to let me know if you have any questions.

Posted in Uncategorized | 3 Comments »

Design Patterns Relations Diagram

Posted by Rajesh Kumar on October 23, 2009

DesignPattern Relations

DesignPattern Relations

Posted in Design Patterns | Leave a Comment »

.net based Product Activation

Posted by Rajesh Kumar on September 24, 2009

Add License Validation, Product Activation, and Installation Keys to your .Net based application. Prevent casual copying and keep your customers honest. Similar to Microsoft style product activation where the product key is validated against the machine specific identifiers and validated against an internet server. Supports server based creation, maintenance and validation of install key codes.

Find more information with Source code at: InstallKey

Posted in .Net | Leave a Comment »

Visual Studio 2008 Extentions / Power Commands

Posted by Rajesh Kumar on September 24, 2009

Microsoft has released extensions for Visual Studio which makes developers life easy. It has the following features:

  • Enable/Disable PowerCommands in Options dialog
  • Format document on save / Remove and Sort Usings on save
  • Clear All Panes
  • Copy Path
  • Email CodeSnippet
  • Insert Guid Attribute
  • Show All Files
  • Undo Close
  • Collapse Projects
  • Copy Class
  • Paste Class
  • Copy References
  • Paste References
  • Copy As Project Reference
  • Edit Project File
  • Open Containing Folder
  • Open Command Prompt
  • Unload Projects
  • Reload Projects
  • Remove and Sort Usings
  • Extract Constant
  • Clear Recent File List
  • Clear Recent Project List
  • Transform Templates
  • Close All
  • You can find more detailed information and msi file from: PowerCommands

    Posted in .Net, Visual Studio | Leave a Comment »

    Remove unused namespaces from Visual Studio

    Posted by Rajesh Kumar on August 12, 2009

    When we add any new class file, Visual Studio 2008 by default adds few namespaces depending on the project type. But, in real time – we will not be using one or all of the namespaces.

    At the same time, most of us know only few namespace of the objects that we are going to use. So, it is a bit difficult to identify and remove the namespace. So, how can we make the code clean?

    Fortunately, Visual Studio allows to Sort, Remove and Remove & Sort unused namespaces. The following pictures shows you how the class file looks like before and after removing the unused namespaces:

    Default Class Structure

    Default Class StructureContext menu in Visual Studio

     

    Context menu in Visual Studio

    Context menu in Visual Studio

    Class structure after Removing and Sorting unused namespaces

    Class structure after Removing and Sorting unused namespaces

    This is a very cool and useful feature 🙂

    Posted in .Net, Visual Studio | 2 Comments »

    Single Sign On – Test Sites added

    Posted by Rajesh Kumar on August 10, 2009

    To make the development and testing easy, I added 3 web sites to the SingleSingleOnResearch as given below:

    1) SingleSignOn.Administration (this site is going to have all administrative interfaces in the future)

    2) FirstWebSite and

    3) SecondWebSite

    All the above 3 sites will have the Login page and then allows you to browse to rest of the two sites without re-login. So, please try and let me know your comments and suggestions.

    Source Code at: http://sso.codeplex.com

    Posted in Single Sign On, WCF | Leave a Comment »

    Single Sign On Alpha 1.1 released

    Posted by Rajesh Kumar on July 28, 2009

    Development of Single Sign On is going smoothly. There is a good response for Alpha 1.0 version.

    As per Codeplex’s statistics, there were 122 downloads.

    I have released Alpha 1.1 version on July 10, 2009. This version includes a Silverlight based UI to test the Single Sign On Service. UI displays the list of Online users and Requested Tokens.

    Please have a look at SSO project at: http://sso.codeplex.com/

    Posted in .Net, Single Sign On, WCF | Leave a Comment »

    Single Sign On – Light Weight

    Posted by Rajesh Kumar on July 2, 2009

    As a journey towards the Single Sign On solution, I have creted a project in Codeplex. It is just an initial version.

    Developed using WCF, ASP.Net and Silverlight to track the online users. Please have a look at: http://sso.codeplex.com/

    Posted in .Net, Single Sign On, WCF | Leave a Comment »

    Rampup (Ascend to new heights in your career)

    Posted by Rajesh Kumar on June 10, 2009

    If at all you are looking for one or more of the below:

    • Web Development with ASP.NET
    • Move from PHP to ASP.NET
    • Move from ASP to ASP.NET
    • Develop Windows Mobile 6 Applications
    • SharePoint for Developers – Part 1
    • SharePoint for Developers – Part 2
    • Visual Studio 2008
    • For the VS 2002/2003 Developer: Learn VS 2005
    • For the VB 6.0 Developer: Learn VB 2005
    • For the Java Developer: Learn .NET
    • Developer Basics

    Its worth browsing:   http://msdn.microsoft.com/hi-in/rampup/default(en-us).aspx

    Posted in .Net | Leave a Comment »