AnsweredAssumed Answered

Set Certificate for a user

Question asked by pratysin on Aug 1, 2018
Latest reply on Aug 24, 2018 by sapsh01

HI Team,

 

In the Internal Identity Provider, I created a user : user1 and now i want to assign a certificate to it. I am doing it via RESTMAN API but facing issues. Below is the XML code i am hiiting and error:

URL:  https://192.168.45.138:8443/restman/1.0/users/90c7eda05c3936d84234a50dbfcc9ae2/certificate with PUT

XML code: 

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<l7:User xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management" providerId="0000000000000000fffffffffffffffe">
<l7:CertificateData>
<l7:Encoded>MIACAQMwgAYJKoZIhvcNAQcBoIAkgASCA+gwgDCABgkqhkiG9w0BBwGggCSABIID6DCCBVUwggVRBgsqhkiG9w0BDAoBAqCCBPowggT2MCgGCiqGSIb3DQEMAQMwGgQUgojUiJXzSPX/m7ZU6Wa1+AymxSACAgQABIIEyJ9kRhS0af/5t5Q69nntSQEaANNNwzj9l0D/zsQz69nHxaKdB/iK9+ww7+yEUKSDx4dWDhjeBDRoM1uuoqcqAEUv2aKFJFoWLBriZR8rvXebpLsNQPHriZtUFQAiJPsfrlETwoW5gwnVjGyQ0U8fhoc96Pmkie8lUzlJVuXaNb9+EydZ4cFD8Ba8A2DDm6a9xUd5fXEtIjd71iWlbbcSRz7lK/kVD64mGXU/E+sCl0KHUpmhedqImTy+5PyUTCpm+KYKbfKj4KFgrQw/wjEaLbk1Ig1GsHBgFvdcmlKPIXWgkEB/Ic0sgZt4Uf4NNfgAPxBQGrmv3jqzQ899XP0yE76ehuRSIby2B3C9lwi+phYgwvlEhV3wdtv7WQzxq/uv5WbYMpEm5itAv0vxFwykc8aGvNqL6dcn19OTTuJVTOiz401nJDgFDD8as2tqa7AcxGO6LtrXSmhpTwmHWsrw7FGtPDhuuB8SwYRn4QznhZKcJ3wFREEIo3mCKC8qgw6IUE6M5N4zaR0ro1YK+RgOqPk/UPBcZk25WhCb6oNNSqlz8Jujbru0ZgShqopjtMa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z+mHT4mz2wo5CdXdOfDBtWbSWupu5Kh4k5oHohbA+DDz/VB2Gm0F16H+pnE5TQSUnBuvsb2SiduJCFiUUbv3YckAbyjp2Dgp7S5Etq0eXvLp5FVK5yVk7rEPoSLm7q0qSQUvaWUMBsuCO+JNEqvj6TU6ygFjmMCsqKJohgTzRxEmB36wPL1eabPp8s/pMI4GKm7WgiIR77aCoa+moBu2b5cUBGxXn1R45kwlUbwrOIC7Czx1NwrN1gx5t8NfYUoKDpZzWSA7zw/87GE5EIrbbiPtMXyIGMbxjCAAAAAAAAAAAAAAAAAAAAAAAADA9MCEwCQYFKw4DAhoFAAQUABHv1vgWSSaLE+6GgE0P7r/oKl4EFMD7KDBuwyPn4WJNLuWYgh0+U97HAgIEAAAA</l7:Encoded>
</l7:CertificateData>
</l7:User>

 

Error is as below :

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<l7:Error xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Type>BadRequest</l7:Type>
<l7:TimeStamp>2018-08-01T14:35:26.868+05:30</l7:TimeStamp>
<l7:Link rel="self" uri="https://gateway1.l7tech.com:8443/restman/1.0/users/90c7eda05c3936d84234a50dbfcc9ae2/certificate"/>
<l7:Detail>HTTP 400 Bad Request. Caused by: cvc-complex-type.2.4.a: Invalid content was found starting with element 'l7:CertificateData'. One of '{&quot;http://ns.l7tech.com/2010/04/gateway-management":Login}' is expected.</l7:Detail>
</l7:Error>

 

Please let me know whether I am missing anything? 

 

Regards

Pratyush

Outcomes