Problems with ROResponse

2009-11-25
2013-04-23
  • avasilchenko

    avasilchenko - 2009-11-25

    Hi.
    I test ROAP-port of openIPMP with Nokia N97. When I send such roResponse:
    <ROResponse status="Success"><deviceID><keyIdentifier algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xsi:type="roap:X509SPKIHash"><hash>xa75JqJ6ubpiQKaMLc/M56u6kHY=</hash></keyIdentifier></deviceID><riID><keyIdentifier algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xsi:type="roap:X509SPKIHash"><hash>yomZlJk5DDcQD355+JGpIo6pLgM=</hash></keyIdentifier></riID><nonce>lFhhBdWFV5ZX2K8lDMp72+ZK+KrZ9Eo0acDOPNNqvj0=</nonce><protectedRO><roap:ro id="n8yu98hy0e2109eu09ewf09u" stateful="true" version="1.1"><riID><keyIdentifier algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xsi:type="roap:X509SPKIHash"><hash>yomZlJk5DDcQD355+JGpIo6pLgM=</hash></keyIdentifier></riID><rights><context><version>2.1</version><uid>n8yu98hy0e2109eu09ewf09u</uid></context><agreement><asset><ds:KeyInfo><EncryptedKey><EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#kw-aes128"></EncryptionMethod><KeyInfo><RetrievalMethod URI="#K_MAC_and_K_REK"></RetrievalMethod></KeyInfo><CipherData><CipherValue>+W8X5pBQTno3sMYeUcPflnSUeNtRccUYIhsKg/4bXlvTlFt5FXTpew==</CipherValue></CipherData></EncryptedKey></ds:KeyInfo></asset><permission><play><constraint><count>1</count></constraint></play></permission></agreement></rights><encKey Id="K_MAC_and_K_REK"><EncryptionMethod Algorithm="http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-1#rsaes-kem-kdf2-kw-aes128"></EncryptionMethod><CipherData><CipherValue>IjQcFVI3J6WwjPoquisoFhNlGZEufzFDWfJu5EFPdZLIecTj4umSXdattawgMLCBLDcMJG7nf7h4ShRN9gS4kUJbb1AveSrLajhQlC1zeSCQduGVYjX+4gJx+igwUQo/wtwgfDHEntXfZLmagJRVSdjw9naE+WqYdkXxGd5RbndwLRaxydZoqXxYANYzpCgoY1bCSwDC7lzxrhc8kd4A6jm01rRtvZjv</CipherValue></CipherData></encKey></roap:ro><mac><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/><Reference URI="#n8yu98hy0e2109eu09ewf09u"><Transforms><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>KgXFBaJgSIDPRUg18EpfVOvXzK4=</DigestValue></Reference></SignedInfo><SignatureValue>hFkCX0Dn8h50sTRayzPzqlsPW00=</SignatureValue><KeyInfo><RetrievalMethod URI="#K_MAC_and_K_REK"></RetrievalMethod></KeyInfo></mac></protectedRO><signature>DJfr7cxe3/lTzk1YoF0mhMvnXhhQQmwbfXErsZcvpYtstgX6q9Kh/9gGVh+Q5KO+4nIRuW1AVLi3ONux1PE5XwHeJsKmasEWsYxQlGh1p5kQ0yQBjBCWzcKcTevCGwWgt37ipySjXiYKZ+scNphoInnO6qRtH2FeoR9J7SJTsyo=</signature></ROResponse>
    I get "Unable to get licence".

    All data in this message is right. I suppose what error in structure of message. As I know you tested openIPMP with N92. Can you share roResponse of that test? It's really help me.
    If you say me where I wrong I will be happy :)

    Thanks in advance

     
  • avasilchenko

    avasilchenko - 2009-11-25

    Sorry… My message is

        <ROResponse status="Success"> <deviceID> <keyIdentifier algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xsi:type="roap:X509SPKIHash"> <hash>xa75JqJ6ubpiQKaMLc/M56u6kHY=</hash> </keyIdentifier> </deviceID> <riID> <keyIdentifier algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xsi:type="roap:X509SPKIHash"> <hash>yomZlJk5DDcQD355+JGpIo6pLgM=</hash> </keyIdentifier> </riID> <nonce>b+hV0L8YtOa97q5DQA9mEmIA8N9n+iNNQN1wuHxEWq8=</nonce> <protectedRO> <roap:ro id="n8yu98hy0e2109eu09ewf09u" stateful="true" version="1.1"> <riID>
        <keyIdentifier algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xsi:type="roap:X509SPKIHash">
        <hash>yomZlJk5DDcQD355+JGpIo6pLgM=</hash>
        </keyIdentifier> </riID> <rights>
        <context>
        <version>2.1</version>
        <uid>n8yu98hy0e2109eu09ewf09u</uid>
        </context>
        <agreement>
        <asset>
        <ds:KeyInfo>
        <EncryptedKey>
        <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#kw-aes128"/>
        <KeyInfo>
        <RetrievalMethod URI="#K_MAC_and_K_REK"/>
        </KeyInfo>
        <CipherData>
        <CipherValue>2i2hQdLgr85tees1FMDZSfCdVKSX+wAsmPG5XrBKSlysipxo7ygBuw==</CipherValue>
        </CipherData>
        </EncryptedKey>
        </ds:KeyInfo>
        </asset>
        <permission>
        <play>
        <constraint>
        <count>1</count>
        </constraint>
        </play>
        </permission>
        </agreement> </rights> <encKey Id="K_MAC_and_K_REK">
        <EncryptionMethod Algorithm="http://www.rsasecurity.com/rsalabs/pkcs/schemas/pkcs-1#rsaes-kem-kdf2-kw-aes128"/>
        <CipherData>
        <CipherValue>KfDy+959sYHBPWumklrlLspp6+3nKQUaZLUCEzA5QhxJVLB7ZQTcNr6jSks7wAKBN8lNTOJ+iUq6KdmDdcaSlnIU9c5C8Da385PIOnqqb1WNWtr2kW/02bM3AHjqjx95vpbfkwVmx/oNE0XFCogON5wSXxGgXMQqM0aT2+T/UxQrB9WczwtpXGXAjTR9zE5gk9KBJhrplN3WmUYD691h+h/jnYLJGKE4</CipherValue>
        </CipherData> </encKey> </roap:ro> <mac> <SignedInfo>
        <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
        <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>
        <Reference URI="#n8yu98hy0e2109eu09ewf09u">
        <Transforms>
        <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
        </Transforms>
        <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
        <DigestValue>KgXFBaJgSIDPRUg18EpfVOvXzK4=</DigestValue>
        </Reference> </SignedInfo> <SignatureValue>yyIzpG2A73GYS8NVRMgc+p6rvnU=</SignatureValue> <KeyInfo>
        <RetrievalMethod URI="#K_MAC_and_K_REK"/> </KeyInfo> </mac> </protectedRO> <signature>S6iV8CrWOEJZtQTCjcOoHGk0O0x7lWk0t3NpRbpwLu7wK2h+aEHFJgrYa4OY/dEkDxy6EjIWvOvba7zK58Ix22hAt6SkZDZnUn40l533LAPGW6FXcjM0ifJLjChZU5lNowMh3BU4eylpflfhAQVMTTYlUTrdnp5YEK8C1P8EcHE=</signature> </ROResponse>

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks