Archives

Meta

All posts tagged Serve Certificate

In this lesson/tutorial I will show you how to install Commerce Server 2009 and all needed for a development platform on a single machine, standalone installation, not farm, meaning that all needed will be on the same machine : Windows Server 2008,Sql Server 2008, IIS 7.0, Windows Sharepoint Services 3.0, Visual Studio 2008, etc.

This installation will be for educational purposes, in real life situation farm installation being advised. It would be better for the overall performance/ security /mantainance to have a separate Sql Server Machine and separate Sharepoint Server for example.

Being a Microsoft product you would expect an easy installation with next, next – finish setup.

Well this is not the case, the setup being a long process with traps along the way.

I will try to show you the steps for installing and configuring Commerce Server 2009 .

Step number 1. Prepare Windows Server Environment

Let`s say you have installed Windows Server 2008.

This platform is for building B2X ecommerce applications/ websites, so the first thing you would need is IIS 7.0 or 7.5 Web Server.

For this you have to go to Server Manager – > Roles – > Add Role -> Web Server (IIS)

Next you have to select the Role services .

Select

Application development (if other features need to be installed you will be prompted with a new form. Click on the “Add Requiered Features” button.

At the end check the “Run the SharePoint Products and Technologies Configuration Wizard now” and click the close button and then :

At Connect to a Server farm Screen choose “No, I want to create a new server farm”

At the next step choose the right instance name of your database server (You could go to Sql Management Studio and copy paste the Server Name. It could be only the servers name (usually when you have a higher version of the Express Server) or MachineName\InstanceName) . In our case it is “Ecommerce\SQLEXPRESS”

At the username choose your administrator account (You could make an account with the specific rights for Sharepoint Administration)

Now we have to configure the Business tools (Catalog Manager,Customers and Orders Manager, Marketing Manager, etc. )

We have to create a user for every web service the sdk uses for the business tools :

Go to Server Manager – > Configuration – > Local Users and Groups -> Users – > New User -> Insert CatalogWebSvc as the UserName and set its password (uncheck “User Must Change password at next logon”. I also unchecked “Password never expires”)

Go to CatalogInventorySystem-> Role Assignments -> Administrator , right click on the empty right part (where it writes “There are no items to show in this view) and Assign Users and Groups (from active directory) and add CatalogAdminGroup and your Administrator Account .

I also added the administrator account to every other role in the role assignments, but I do not think it is necessary, so feel free to try it without the last part.

Go to IIS Management tool -> Sites -> Default Web Site -> DefaultSite_CatalogWebService -> browse and add the CatalogWebService.asmx part to the end of the url in the browser.

and press ok. You will get another error. If you check the event viewer you will see that that it does not have rights to access the AuthorizationStore.xml.

All you have to do is to go to c:\inetpub\wwwroot\DefaultSite_CatalogWebService, folder properties, security , edit -> add user , and there you add the administrator account and CatalogWebSvc User with full control .

Do the same to the folders c:\inetpub\wwwroot\DefaultSite_MarketingWebService, but add the MarketingWebSvc user, c:\inetpub\wwwroot\DefaultSite_OrdersWebService, but add the OrdersWebSvc user and c:\inetpub\wwwroot\DefaultSite_ProfilesWebService, but add the ProfilesWebSvc user.

If you open the Catalog Manager again it should work.

Configuring the Customers and Orders and Marketing Manager

Go to IIS Manager, the main node (with the machine name, in this case ECOMMERCE) and go t Server Certificates :

Create Self-Signed Certificate, and give it the machine name : ECOMMERCE

Now go to Sites->Default Web Site -> Bindings -> Add and choose https with the newly created certificate (ECOMMERCE)

For the other Business tools to work we have to configure the roles in azman.msc as we did with the CatalogManager:

Go to azman.msc again. Right Click on the first node (Authorization Manager) Open Authorization Store, and go to c:\inetpub\wwwroot\DefaultSite_MarketingWebService\ and open the MarketingAuthorizationStore.xml

Go to the MarketingSystem subnode -> Role Assignments and add MarketingAdminGroup to MarketingAdministrator Role

Right Click on the first node (Authorization Manager) Open Authorization Store, and go to c:\inetpub\wwwroot\DefaultSite_OrdersWebService\ and open the OrdersAuthorizationStore.xml

Go to the OrdersSystem subnode -> Role Assignments and add OrdersAdminGroup to OrdersAdministrator role and Admin to OrdersViewer role

Right Click on the first node (Authorization Manager) Open Authorization Store, and go to c:\inetpub\wwwroot\DefaultSite_ProfilesWebService\ and open the ProfilesAuthorizationStore.xml

Go to the ProflesSystem subnode -> Role Assignments and add ProfilesAdminGroup and the Administrator account to ProfilesAdministrator role