Article ID: 315471 - Last Review: December 3, 2007 - Revision: 3.5 How to use Message Queuing 3.0 to perform secure Internet messaging over HTTPS in IIS
This article was previously published under Q315471 On This PageSUMMARY
This step-by-step article describes how to use HTTPS to encrypt messages that must be secure and send these messages to Internet Information Services (IIS) servers. RequirementsThe following items describe the recommended hardware, software, network infrastructure, skills and knowledge, and service packs that you need:
Secure Internet Messaging with Message Queuing 3.0When you develop distributed applications, a means of guaranteeing the reliability of communications between components is essential. Message Queuing 3.0 provides store and forward functions for communications between components of distributed applications that run on different computers by creating queues in which messages can be stored until delivery is possible. Version 3.0 of this application programming interface (API), which is included with Windows XP, includes the ability to send messages through Hypertext Transfer Protocol (HTTP) to IIS servers. If these messages need to be secure, you can use the HTTPS protocol, which includes Secure Sockets Layer (SSL) encryption.Message Queuing 3.0 must be installed on all computers that are involved in the application, including the IIS server. To install Message Queuing 3.0, follow these steps:
Install a Certificate on the IIS ServerAny system that uses SSL requires a server-side certificate. You should otain a server-side certificate from a trusted source, such as an Internet Certificate Authority.To create a certificate request file, follow these steps:
Create the New Queue on the IIS ServerThe following Visual Basic sample demonstrates how to create the new queue:NOTE: You must add Microsoft Message Queue 3.0 Object Library to the project references. This sample uses an MSMQQueueInfo object. Send a Message to the Queue Using HTTPSRun the following Visual Basic code on the computer that sends the messages:NOTE: You must add Microsoft Message Queue 3.0 Object Library to the project references. An MSMQDestination object is used to reference the queue on the IIS server. To ensure that secure protocol is used, set the Format Name property of the MSMQDestination object by using HTTPS syntax. Retrieve a Message Using HTTPSThe following sample loops through all the messages in the queue and reads their labels, and then displays the messages in a message box:NOTE: An MSMQQueueInfo object is used to address the queue by using an HTTPS format name. You must add Microsoft Message Queue 3.0 Object Library to the project references. REFERENCESFor additional information about how to use an internal Certificate Authority and set up Windows 2000 Certificate Services, click the article number below
to view the article in the Microsoft Knowledge Base:
231881
(http://support.microsoft.com/kb/231881/EN-US/
)
How to Install/Uninstall a Public Key Certificate Authority for Windows 2000
For more information about Message Queuing 3.0, see the "Message Queuing (MSMQ)" topic in the Platform Software Development Kit (SDK). | Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
