| Author |
Message |
Paul.
Guest
|
Posted:
Thu Sep 30, 2004 2:03 am Post subject:
Creating live drm profile question |
|
|
HI,
I'm trying to create a live drm profile in windows encoder via the
DRMEncoder asp sample..
I have generated the required keys using server side code and made these
available client side as follows is this the correct method ( as it would
seem that they are then available to view?)
If this is the correct method, can anyone spot why i can't seem to create
the profile
using DRM.CreateDRMProfile()
thanks in advance...
' ~~~~~~~~~~~~~~~~ Server Side code ~~~~~~~~~~~~~~~~~~~~~~ '
Dim KeysObj
Dim sSigLSCert
Dim sSigRootCert
Dim sSeed
Dim sProviderURL
Set KeysObj= Server.CreateObject("Wmrmobjs.WMRMKeys")
KeysObj.GenerateSigningKeysEx vPrivKeyTtlHdr, vPubKeyTtlHdr, vSignedPubKey
sSigRootCert = KeysObj.GetCertificate("LSRootCert")
sSigLSCert=KeysObj.GetCertificate("LSLicenseSigningCert")
sSeed="some seed"
sProviderURL="some url"
sKeyID=KeysObj.GenerateKeyID()
' ~~~~~~~~~~~~~~~~ Client Side code ~~~~~~~~~~~~~~~~~~~~~~ '
sProfileID = 0
Set DRM = Window.External
sSigRootCert="<%Response.Write("sSigRootCert")%>"
sSigLSCert= same method of getting server side var as above
sSeed=same method of getting server side var as above
vSignedPubKey=same method of getting server side var as above
sKeyID=same method of getting server side var as above
sPublicKeyV7 = DRM.CreateDRMProfile(sProviderURL, vPrivKeyTtlHdr,
vSignedPubKey, sSigLSCert, sSigRootCert, sProfileID, sSeed)
|
|
| Back to top |
|
 |
Paul
Guest
|
Posted:
Thu Sep 30, 2004 2:31 am Post subject:
RE: Creating live drm profile question |
|
|
Hi
Ok, well as is usual with posting publicly, I've spotted at least one error,
I didn't realise that the DRM.CreateDRMProfile() function actually returns 2
additional values specified in the latter 2 parameters.. ( not too used to
asp)
however I'm still getting a client side error ie
"The parameter is incorrect", which i think is coming from the above
function..
Any help appreciated...
"Paul." wrote:
| Quote: | HI,
I'm trying to create a live drm profile in windows encoder via the
DRMEncoder asp sample..
I have generated the required keys using server side code and made these
available client side as follows is this the correct method ( as it would
seem that they are then available to view?)
If this is the correct method, can anyone spot why i can't seem to create
the profile
using DRM.CreateDRMProfile()
thanks in advance...
' ~~~~~~~~~~~~~~~~ Server Side code ~~~~~~~~~~~~~~~~~~~~~~ '
Dim KeysObj
Dim sSigLSCert
Dim sSigRootCert
Dim sSeed
Dim sProviderURL
Set KeysObj= Server.CreateObject("Wmrmobjs.WMRMKeys")
KeysObj.GenerateSigningKeysEx vPrivKeyTtlHdr, vPubKeyTtlHdr, vSignedPubKey
sSigRootCert = KeysObj.GetCertificate("LSRootCert")
sSigLSCert=KeysObj.GetCertificate("LSLicenseSigningCert")
sSeed="some seed"
sProviderURL="some url"
sKeyID=KeysObj.GenerateKeyID()
' ~~~~~~~~~~~~~~~~ Client Side code ~~~~~~~~~~~~~~~~~~~~~~ '
sProfileID = 0
Set DRM = Window.External
sSigRootCert="<%Response.Write("sSigRootCert")%>"
sSigLSCert= same method of getting server side var as above
sSeed=same method of getting server side var as above
vSignedPubKey=same method of getting server side var as above
sKeyID=same method of getting server side var as above
sPublicKeyV7 = DRM.CreateDRMProfile(sProviderURL, vPrivKeyTtlHdr,
vSignedPubKey, sSigLSCert, sSigRootCert, sProfileID, sSeed)
|
|
|
| Back to top |
|
 |
Amit Chandel
Guest
|
Posted:
Thu Sep 30, 2004 11:11 am Post subject:
Re: Creating live drm profile question |
|
|
Make sure the parameter values that you are passing are the correct
type. For string use cStr(xxx), and for ints use cInt(xxx). ASP uses
variants, so you have to do the conversion.
Amit Chandel
"Paul" <Paul@discussions.microsoft.com> wrote in message news:<49211E06-C039-41EC-A69B-BA0E9D1E3311@microsoft.com>...
| Quote: | Hi
Ok, well as is usual with posting publicly, I've spotted at least one error,
I didn't realise that the DRM.CreateDRMProfile() function actually returns 2
additional values specified in the latter 2 parameters.. ( not too used to
asp)
however I'm still getting a client side error ie
"The parameter is incorrect", which i think is coming from the above
function..
Any help appreciated...
"Paul." wrote:
HI,
I'm trying to create a live drm profile in windows encoder via the
DRMEncoder asp sample..
I have generated the required keys using server side code and made these
available client side as follows is this the correct method ( as it would
seem that they are then available to view?)
If this is the correct method, can anyone spot why i can't seem to create
the profile
using DRM.CreateDRMProfile()
thanks in advance...
' ~~~~~~~~~~~~~~~~ Server Side code ~~~~~~~~~~~~~~~~~~~~~~ '
Dim KeysObj
Dim sSigLSCert
Dim sSigRootCert
Dim sSeed
Dim sProviderURL
Set KeysObj= Server.CreateObject("Wmrmobjs.WMRMKeys")
KeysObj.GenerateSigningKeysEx vPrivKeyTtlHdr, vPubKeyTtlHdr, vSignedPubKey
sSigRootCert = KeysObj.GetCertificate("LSRootCert")
sSigLSCert=KeysObj.GetCertificate("LSLicenseSigningCert")
sSeed="some seed"
sProviderURL="some url"
sKeyID=KeysObj.GenerateKeyID()
' ~~~~~~~~~~~~~~~~ Client Side code ~~~~~~~~~~~~~~~~~~~~~~ '
sProfileID = 0
Set DRM = Window.External
sSigRootCert="<%Response.Write("sSigRootCert")%>"
sSigLSCert= same method of getting server side var as above
sSeed=same method of getting server side var as above
vSignedPubKey=same method of getting server side var as above
sKeyID=same method of getting server side var as above
sPublicKeyV7 = DRM.CreateDRMProfile(sProviderURL, vPrivKeyTtlHdr,
vSignedPubKey, sSigLSCert, sSigRootCert, sProfileID, sSeed)
|
|
|
| Back to top |
|
 |
Paul
Guest
|
Posted:
Thu Sep 30, 2004 1:40 pm Post subject:
Re: Creating live drm profile question |
|
|
Thanks amit, i managed to get the licence profile into the encoder last
night...
The docs mention that the values returned by the createDRMProfile fucntion
need to be passed back to the server.
At present, I'm just logging them and i thought that i'd be able to use the
provided IssueLicense.asp script to acquire a licence from the encoder
profile.
It seems to go though all the stages but an error pops up sayign the licence
is invalid.
Do i need to incorporate the KeyID, Public Key, Seed and Profile ID into
the licence issuing script ort should it use the server values ( as in the
issueLicence.asp sample)
Many Thanks..
Paul.
"Amit Chandel" wrote:
| Quote: | Make sure the parameter values that you are passing are the correct
type. For string use cStr(xxx), and for ints use cInt(xxx). ASP uses
variants, so you have to do the conversion.
Amit Chandel
"Paul" <Paul@discussions.microsoft.com> wrote in message news:<49211E06-C039-41EC-A69B-BA0E9D1E3311@microsoft.com>...
Hi
Ok, well as is usual with posting publicly, I've spotted at least one error,
I didn't realise that the DRM.CreateDRMProfile() function actually returns 2
additional values specified in the latter 2 parameters.. ( not too used to
asp)
however I'm still getting a client side error ie
"The parameter is incorrect", which i think is coming from the above
function..
Any help appreciated...
"Paul." wrote:
HI,
I'm trying to create a live drm profile in windows encoder via the
DRMEncoder asp sample..
I have generated the required keys using server side code and made these
available client side as follows is this the correct method ( as it would
seem that they are then available to view?)
If this is the correct method, can anyone spot why i can't seem to create
the profile
using DRM.CreateDRMProfile()
thanks in advance...
' ~~~~~~~~~~~~~~~~ Server Side code ~~~~~~~~~~~~~~~~~~~~~~ '
Dim KeysObj
Dim sSigLSCert
Dim sSigRootCert
Dim sSeed
Dim sProviderURL
Set KeysObj= Server.CreateObject("Wmrmobjs.WMRMKeys")
KeysObj.GenerateSigningKeysEx vPrivKeyTtlHdr, vPubKeyTtlHdr, vSignedPubKey
sSigRootCert = KeysObj.GetCertificate("LSRootCert")
sSigLSCert=KeysObj.GetCertificate("LSLicenseSigningCert")
sSeed="some seed"
sProviderURL="some url"
sKeyID=KeysObj.GenerateKeyID()
' ~~~~~~~~~~~~~~~~ Client Side code ~~~~~~~~~~~~~~~~~~~~~~ '
sProfileID = 0
Set DRM = Window.External
sSigRootCert="<%Response.Write("sSigRootCert")%>"
sSigLSCert= same method of getting server side var as above
sSeed=same method of getting server side var as above
vSignedPubKey=same method of getting server side var as above
sKeyID=same method of getting server side var as above
sPublicKeyV7 = DRM.CreateDRMProfile(sProviderURL, vPrivKeyTtlHdr,
vSignedPubKey, sSigLSCert, sSigRootCert, sProfileID, sSeed)
|
|
|
| Back to top |
|
 |
|
|
|
|