错误代码510 aadhaar身份验证API中的无效的Auth XML格式

时间:2017-11-19 08:44:37

标签: xml authentication xml-validation aadhaar

我的身份证明是 http://auth.uidai.gov.in/1.6/public/9/9/MG41KIrkk5moCkcO8w-2fc01-P7I5S-6X2-X7luVcDgZyOa2LXs3ELI

我的身份验证XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Auth xmlns="http://www.uidai.gov.in/authentication/uid-auth-request/1.6" sa="public" lk="MEaMX8fkRa6PqsqK6wGMrEXcXFl_oXHA-YuknI2uf0gKgZ80HaZgG3A" txn="AuthDemoClient:public:201711191357401511080060" ver="1.6" tid="public" ac="public" uid="999999990019">
<Uses pi="y" pa="n" pfa="n" bio="n" bt="" pin="n" otp="n"/>
<Meta udc="UIDAI:SampleClient" fdc="NA" idc="NA" pip="NA" lot="P" lov="110002"/>
<Skey ci="20191230">vYAmyVzLOoTHUWbLVgOpKyTxaZHzybVrpkdQvPuX+z1vwtOmVVfESyeI1Y3j8F0Pu8NIz1eU0nIRGVAH9jy7VAbxBTNP21eFJL8S8xynJ1vVb/aSxh+2aFIHomOUeZPb+p0PlSOs8d1qiOtG1648hpyWMJDZdVMxWae2B0nT0kARaQnZAPFvx3ZNzHivO3SAOwDx2oCilz0NdHBUEJDf7o+Gs9wzL1fta/EyjlmS82th8ssaBZ69X9cD/Xe+04u31sMoBF9VMso4QhKJj/3rFR+Y3GAMHyO+vqGf3gekyBcrNPf5l/w5pz0zuhu+0/5TOsPbt0gK6jLamgkZ2HP27A==</Skey>
<Data type="X">gxwG7GdjhPusVdngdpSjA4OvWjsLt5corj3v4+9gD2dPKWWHupw1COH0kFTN59Y+2LBOgX6EkMKmb0fqfth+25uuHnV2eqdulksjlfjDT5Uw9UPoLOHAZZtJ/OJFMgVYsS5MtvUSj3HiJ34JEXX2TMbST6aCenF88/hhs0OzW3Q=</Data>
<Hmac>FLd0dHdbtKWwrboURpu+xffgR+gQUoePSr5DGzAKVNDbXyj9KW9k2qgRkaCEtt4L</Hmac>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:SignedInfo>
        <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/>
        <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
        <ds:Reference URI="">
            <ds:Transforms>
                <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
            </ds:Transforms>
            <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
            <ds:DigestValue>Q/tVmOeI/Kc6iX6h0HGbnF48khc=</ds:DigestValue>
        </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>LWUpl8eyJj1mtKVYC/EMvUtLPtb5OqWNUOgZ8tXcmDIQCdpibkA4NrEYKC8TPNAGBH4uFQrHJygHmYRgaJLiVJcesI3YRuwFu06ju1O0RkqUQaOOhWgxW1qaCCe88XWLoKALB+DdU6Jra4I7EAfr8OlxEkCJo9qosihocXSbphbPC7Nu2F7lkD64X8y/t8UC5i/rkoYNJ3KDyS5H0iJDpQlg+otmHpLWMdoDmHpuSCJICKoXFLX6izsn679vTYfCwUBHjoCUbcy13NsMizYPpQsqqFcBABQFBkGPjUrUnCKQsJuuVacGQaxXOfT3r1EUPNksIIiJ9G3qSh6/Iu4Kzw==</ds:SignatureValue>
    <ds:KeyInfo>
        <ds:X509Data>
            <ds:X509Certificate>MIIDuDCCAqCgAwIBAgIGA7J+eqryMA0GCSqGSIb3DQEBBQUAMIGNMQswCQYDVQQGEwJJTjELMAkGA1UECBMCS0ExEjAQBgNVBAcTCUJhbmdhbG9yZTETMBEGA1UEChMKUHVibGljIEFVQTEZMBcGA1UECxMQU3RhZ2luZyBTZXJ2aWNlczEtMCsGA1UEAxMkUm9vdCBQdWJsaWMgQVVBIGZvciBTdGFnaW5nIFNlcnZpY2VzMB4XDTE2MDUyNDE0NDAzMVoXDTIwMDUyNDE0NDAzMVowgYgxCzA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F-8"?>
<AuthRes code="NA" err="510" info="02{5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9,0000000000000000000000000000000000000000000000000000000000000000,0100000000000000,NA,NA,NA,NA,NA,1.6,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA}" ret="n" ts="2017-11-19T13:58:32.942+05:30" txn="">
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
        <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
        <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
        <Reference URI="">
            <Transforms>
                <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
            </Transforms>
            <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
            <DigestValue>+WOyOmwIKDxvWYmRUbruC77E15hQ1ZBmv5ZTnlOpsgk=</DigestValue>
        </Reference>
    </SignedInfo>
    <SignatureValue>K3dx2XM/C7Tb3QY62dUFzp88SOnArIMWBX9dtFvRkPxrmNimdAhlGZSPPLpdgBqVd4BfgzCQ3OPgnkAJdG0adodr/wlCuNM0Dx4ycE16QSDIJK4/54rg7TffqBL/hogIAdb1jW41p7sA4iRZ9/HZ0LWByYqlP2LtC+mzsegsA7HouMLxT+bUq6VV+v5YR9A7rjFNiSCNL6bVG06E+KCfWyMV0YPuz7H+GAAcJc7VxLWb7XX/vGu9kbjFHsll2VRq3AGpUCv8CFYvKUyCanhbZolvdMtXfkmRkJmyF5GREmf3OwMYecFi4PhyV0JNC0w5MkM2skvJAn21zrjjsL4BGg==</SignatureValue>
</Signature>
</AuthRes>

为什么我得到错误代码510,我有所有强制性元素,我已经检查了所有属性都被正确分配的各种时间,元素的层次结构也是正确的。

0 个答案:

没有答案