Quick Start
Previous | Next |
Quick Start
If you are new to Microsoft Windows Media Rights Manager, use the following process to set up and try out the Windows Media Rights Manager 10.1.2 SDK.
Notes This process assumes you are using a computer with a clean installation of Microsoft Windows Server 2003 and do not have Windows Media Rights Manager version 1 installed.
By default, Internet Information Services (IIS) and Active Server Pages (ASP) are not enabled on Windows Server 2003. These features must be enabled before you can use the sample pages for the Windows Media Rights Manager SDK.
The Quick Start process includes the following procedures, explained in more detail following this list:
- Make a working copy of the sample pages.
- Create values for your license key seed, content server public key, and content server private key.
- Edit the Global.asa file.
- Enable the Global.asa file.
- Get a certificate and revocation list for Windows Media License Service.
- Try out the packaging and licensing process.
For information about Windows Media Rights Manager concepts, see Understanding How Windows Media Rights Manager Works. For information about the sample pages, see Using the Sample Pages.
Make a working copy of the sample pages
After you install Windows Media Rights Manager 10.1.2 SDK, copy the sample pages to a new directory:
- Create the following directory: systemroot\inetpub\wwwroot\wm
- Copy all files from the installation directory systemroot\WMSDK\WMRM10.1\samples to the new directory systemroot\inetpub\wwwroot\wm
Create values for your license key seed, content server public key, and content server private key
To create values for your license key seed, content server public key, and content private key, you'll need to create and run a script file:
Open a text editor, such as Microsoft Notepad.
Copy the following code and paste it into the document:
Dim WSHShell Set WSHShell = WScript.CreateObject("WScript.Shell")
dim keysobjs dim privkey dim pubkey dim seed
Set keysobj= CreateObject("wmrmobjs.WMRMKeys") keysobj.GenerateSigningKeys privkey, pubkey seed = keysobj.GenerateSeed() Dim cmd
' Write the private key to privkey.txt. cmd = "cmd.exe /C echo " + privkey + " > privkey.txt" WSHShell.Run cmd,0
'Write the public key to pubkey.txt. cmd = "cmd.exe /C echo " + pubkey + " > pubkey.txt" WSHShell.Run cmd,0
' Write the license key seed to seed.txt. cmd = "cmd.exe /C echo " + seed + " > seed.txt" WSHShell.Run cmd,0
Save the file as WMRMKey.vbs.
Run the WMRMKey.vbs file. Three text files are created (seed.txt, pubkey.txt, and privkey.txt) in the same directory as the script file. Each text file contains a value.
Note In real practice, these values should be kept very secure.
Edit the Global.asa file
To edit information that Windows Media Rights Manager needs to package and license files:
Edit the Global.asa file from the directory systemroot\inetpub\wwwroot\wm to include the following information (you can use a text editor such as Notepad):
siteurl: The name of your server followed by /wm, such as https://your_server_name/wm.
seed: Your license key seed, which you copy and paste from seed.txt.
Important When you copy and paste this value, make sure that you do not include spaces at the end of it.
contentserverpubkey: Your public key, which you copy and paste from pubkey.txt.
Important When you copy and paste this value, make sure that you do not include spaces at the end of it.
contentserverprivkey: Your private key, which you copy and paste from privkey.txt.
Important When you copy and paste this value, make sure that you do not include spaces at the end of it.
Ignore the other lines in the Global.asa file, which are related to Windows Media Rights Manager version 1.
Save the updated Global.asa file.
Enable the Global.asa file
To enable the Global.asa file:
- On the Start menu, point to Programs, point to Administrative Tools, and then click Internet Services Manager.
- Expand the icon for your server, expand Web Sites, and then click Default Web Site.
- In the content pane, right-click the WM directory and click Properties.
- On the Directory tab under Application Settings, click Create.
- In Execute Permissions, click Scripts and Executables, and then click OK.
- Stop and restart the World Wide Web Service (at the command prompt, enter Net stop w3svc, then enter Net start w3svc).
Get a certificate and revocation list for Windows Media License Service
You must get a certificate and revocation list for each computer that runs Windows Media License Service. Complete this process on one computer before starting the process on a different computer.
From each computer running Windows Media License Service, go to the Microsoft Web site https://licenseserver.windowsmedia.com/, click Enroll to get a new certificate, and then follow the instructions to begin the enrollment process.
You will receive an e-mail message containing the token you need to complete the enrollment.
Return to https://licenseserver.windowsmedia.com/, click Complete the enrollment with your e-mail confirmation, and then follow the instructions to complete the enrollment.
Return to https://licenseserver.windowsmedia.com/ and click Download the Latest License Server Information to install the latest revocation list.
Try out the packaging and licensing process
To use the sample pages to package a file and test license delivery:
- Open https://<your_server_name>/wm/package.asp and fill out the form:
Specify the Windows Media file to be packaged.
Specify the output path and file name for the packaged Windows Media file (use a file name that is different from the source).
Note Make sure the output folder allows Modify permission to Everyone. Otherwise, an "Access is denied" message appears when you try to package files.
- Select **Simple** for **License acquisition URL**.
- Click Package.
- To test license delivery, play the packaged Windows Media file. If you use Windows Media Player 7 or later, you can change the preferred license delivery method (silent or nonsilent) by selecting Options on the Tools menu, clicking the Privacy tab, and then selecting or clearing the Acquire licenses automatically for protected content option.
See Also
Previous | Next |