Windows Media Right Manager
DRM (digital right management)
Windows 2003
IIS6
Windows Media Right Manager (WDRM) SDK 7.1
[1.] 當我們裝完Windows Media Right Manager (WDRM) SDK 7.1後,將在systemroot下的MSDKWMRMSamples裡的檔案複制到systemroot下的inetpubwwwrootwm中。(新增wm目錄)
[2.] 新增文字檔,內容如下
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 = "command.com /C echo " + privkey + " > privkey.txt"
WSHShell.Run cmd,0
'Write the public key to pubkey.txt.
cmd = "command.com /C echo " + pubkey + " > pubkey.txt"
WSHShell.Run cmd,0
'Write the license key seed to seed.txt.
cmd = "command.com /C echo " + seed + " > seed.txt"
WSHShell.Run cmd,0
檔案名稱存成WMRMKey.vbs
並執行WARMKey.vbs
會產生三個檔案
PRIVKEY.TXT
PUBKEY.TXT
SEED.TXT
之後這三個檔案的內容,用於sysrootinetpubwwwrootwm中的Global.asa
[3.] 編輯Global.asa,修改四個地方,存檔
[4.]
打開IIS6
網際網路資訊服務(iis)管理員 ->
預設的網站 ->
wm(前面所新增的目錄) – >
右鍵 ->
內容 ->
目錄 ->
應用程式設定值 ->
按下建立
並於執行權限選擇”指令碼及執行檔”
之後確定,並重新啟動IIS
[5.]
Get a certificate and revocation list
到http://licenseserver.windowsmedia.com/
先按Enroll to get a new certificate
填寫完資料,去收mail,會收到一token 數字
再回到上面的網址按Complete the enrollment with your e-mail confirmation
輸入mail中的數字
最後Download the latest License Service Information
安裝最新的revocation list
[6.]
packaging and licensing process
於網址輸入
http://<ip or domain>/wm/package.asp
瀏覽檔案
並輸出檔案位置
之後package
(成功時會有個訊息Status: The media file has been successfully packaged)
Package之後影音檔案內容多了個授權
當直放影音時,出現訊息如下
[7.]
Issuing Licenses
Issue a license before a Windows Media file is played
Issue a license by player request
Issue a license silently
Issue a license nonsilently (requires input from the consumer).
Issue licenses based on the consumer’s player and platform
有以上的幾項發怖方式,但我現在找不出具體方向做出發怖,也就是不知怎麼讓client來得到這licenses的方式
ref: http://msdn.microsoft.com/msdnmag/issues/01/12/DRM/default.aspx
留言