SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

Configuring SSL in SharePoint 2007 development environment

A SharePoint 2007 development can get quite complex depending on the business case and requirements of your customer. Last year I have worked on a few SharePoint 2007 solutions. During the development I have noticed that it is extremely helpful if you know how the customer's infrastructure will look like. It will help you even more if you will configure your development environment to resemble the customer's infrastructure as much as possible.

One of the things you should definitely consider is working with anonymous access and SSL support from the very beginning if applicable because they have major impact on the custom code you might need to create. Examples of the things you should be considering are Regular Expression for url parsing and privileges elevation if required to access some of the SharePoint properties. Finding out that your solution doesn't work in the real environment might be painful - especially if it's after it all has been deployed.

Setting up anonymous access in SharePoint 2007 is really straight forward and can be done by turning on two checkboxes. It is a bit more difficult to set up a working SSL certificate on your development machine though. It's all get difficult if you don't have the access to a server issuing certificates and all you want is a dummy certificate for development purposes only.

Let's begin with creating a new SharePoint 2007 Web Application which will use SSL:

SharePointSSL_WebApp

The most important here is setting up the port to 443 and enabling SSL support. Configuring these settings correctly should automatically create the correct load balanced url beginning with https and ending with :443.

Now we have the Web Application, we are ready to create and link the SSL certificate. I have assumed you don't have access to a certificate server and you need to create an SSL certificate by yourself. To do so, you will first of all need the IIS 6.0 Resource Kit Tools. It contains a tool called SelfSSL which will create and link the dummy SSL certificate. After the installation you are almost ready to run the tool. The last detail you need to have is the ID of your Web Application which is required by SelfSSL. You can obtain it quite easily by running the IIS Manager > Properties of your Web Application and then opening the Logging Properties dialog.

SharePointSSL_LoggingProperties

The Web Application ID is the long number following W3SVC and in our case is 75208739:

SharePointSSL_SiteID

Now we have all the details we must run SelfSSL by calling from the command prompt:

SelfSSL.exe /S:75208739 /T /Q

The SSL certificate will get automatically created and linked to our Web Application which will allow us to work with SharePoint through SSL.

Summary

Making your SharePoint 2007 development environment resemble the customer's production environment turns very useful during custom development. It allows you to debug your solution earlier and much more accurately. Furthermore you are able to test your deployment procedure much earlier in your development process what will spare you some unpleasant surprises afterwards.
Configuring anonymous access and SSL support if applicable isn't very difficult and covers the most common development issues. It is therefore worth making an integral part of your SharePoint 2007 development environment initiation.


Posted 01-30-2008 8:25 AM by Waldek Mastykarz

Comments

AutoSponge wrote re: Configuring SSL in SharePoint 2007 development environment
on 01-30-2008 1:38 PM

Most people did not purchase the Internet license of MOSS and therefore can not use anonymous access liberally.

Most installations I've seen probably need to set up a port 80 web app (anonymous access) that redirects to the port 443 extended web app.

If you are developing for cross-browser compatability, don't want users to have to type the domain name, or just need RSS to work without authentication--get it all set up in development first.  Stuff like that breaks sites.

Links (1/30/2008) « Steve Pietrek’s SharePoint Stuff wrote Links (1/30/2008) « Steve Pietrek’s SharePoint Stuff
on 01-30-2008 6:59 PM

Pingback from  Links (1/30/2008) « Steve Pietrek’s SharePoint Stuff

Eddie wrote re: Configuring SSL in SharePoint 2007 development environment
on 02-21-2008 2:26 PM

I have an exisiting intranet site on port 80 i would like to implement SSL, but when i go to extend the web application the use an existing web application is greyed out. I also dont see choose existing app pool. Can you help

Waldek Mastykarz wrote re: Configuring SSL in SharePoint 2007 development environment
on 02-21-2008 11:22 PM

This post has moved to blog.mastykarz.nl/.../configuring-ssl-in-sharepoint-2007-development-environment If you would be so kind to post your question there, I will try to answer your question.

Peter B wrote re: Configuring SSL in SharePoint 2007 development environment
on 06-12-2008 1:54 AM

Better to use SSLDiag now, with the SelfSSL switch:

ewright.spaces.live.com/.../cns!C0C3DF24CE16DC2F!169.entry

See also:

Configuring SSL Host Headers (IIS 6.0)

www.microsoft.com/.../596b9108-b1a7-494d-885d-f8941b07554c.mspx

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.