Use the “createCertificateById” and “createCertificateP7BById” method for creating the X509 certificate and p7B certificate based on the ID selection.
Copy Header:
Request Body:
Content-Type : application/json
emKey : 47b54594063957de22fce0aeddd51a6adf4a80aa
{
"requestData":" "requestData" : "E7utLpuJ0Xy9WK0IdHXjLjmtb7yr1DBCgoevpUPvVK4+3//WS1SPpdyszTZzDZrDUr4YpE7TefGO0ZJ NouHck6+kQ6oQGmvGLzv5qxzCmnNAyO6dGH82OwnZqxOViPf9iDHnLwFLX3ZpFdQkQaGrnQYkmfc1akm
/xxQvnLaWcaVXKBV29O5zGt8bTPmHvXd+1QLesyjuk/sjd9X2l4cmjr9P6gq1gtC0Sow3U/SNpXk3jAr J/sD/yQ8wh3aF7rOxP0DgEnK8QGW2/FdvCSla4XdtTq16WiSybr2lWDOHeomQBWSMN5M0f82CZIuF33R H5kjK06LBz5VyL13QdI7GW/HopMpjSUgNWv3HqNqaMdY+8VS8yx9AW9zQ0KgM5gonyWFlIq6z6gmvDbS dGNhWj9gG5NFN38F/pTFusm3rFaaJl5WY/8dQpvkz71kMME92EwnhK+K5EY9QcPKLWPLErWOrRaN1klc Tu9Uni4MnQOCbAik98XObvOntVN7H7lJmuJrSlHgz+eN2oT2y8fFZJPcjQAc+JfiE4KI6M6DnSB+5byI mgEOfUkqogkFg/v2QYyvq2RHRP4tPFBMbziGoBqtsLwjPPybQAi5pAligOckb5wtELfnR9Qv9uKriPIQ iXEufP/NWjhW58fil7bC/yf1rMKQJid6QNj8O8Wl2oU1qJaHg3Tqbm53UxJPLchUOTd4UAFGVxvNkQLg z1oRjZyp3x4NtAyZwGbFFg1gC/enFaSdcjyZ3UmLpIbpcF9ONXJOeUmZnKyBmwVoAAmlc/8/9r5Gz5ze
+ZgK0PbPO1wfqFD6W7tvUzA0uGUwO35txC3KW9FQ1P7xq673mIM8zZe4M/f/ejkU+ynTStLzpxXxOD22 j/aCxw1CCrtWmcswGqpnk6MHqjr7W+meGY0R8ufYCa8y7fbCkhbD1b/Bmv/mH3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/tsvjpjAVCo5KvqIuijTqP9H7jokMStik8JPFf XAOIWroajHGVmePm1eZNXvcBgHBuuQ6iLkqGbD0VRIo4mClIymQ/5uamdAxGBmR5LLdraEat9gjQ6jp4 bJLzLA3EZCgZGv0oG62dfYb5zzQFKJ+xMYEGEB5cJAVJERaVcA/T19dPr55McJ+mLvj5Bf7wrLG8VKk4 2IGmeCoO4g4yjh37lxdEjV2VmFA0Mk8bicei2omPoaBu5kdCWettf/8xe0GhtOXqTg9FBPB0BZdT5Zxn qO5ZTAHWDqECywqoJrGWC9jHTscYb7x+Pf7hnVFa36SmiY7uVdBo3r6usDkQwOGqBkHyLAAPtubNNQ6O 2OmcqSB3hQo9/5spFRbcJUKdi1926garxNQrbgu27hxCm7XD0NYkqAPgCBGsCn13qPcv0Y/bk0DZhu4M QEbydAWhe+fnW4IRnm9cs+5jMaaBMFe9X0wv1MSZkrtzDLGnHiA+B3Nl8ZNqdCDeNHBfO6mkLUmnCO1F eKtRKICkjeD0c9RGQLiJyhGMHEvc2FajnA17emACARqvvQAs6oKvTIHW5UU+TVawgQ/2CAOIstazD6pg nH22iICuROB3E/tJnmKMNcR4TJxAP/ueF",
"userName":"username"
}
Copy Sample:
Success:
Response Body()
{
"status":"success",
"result":"base 64 encoded x509 certificate data",
“subscriberId”:”XXX” "requestId": null
}
Response Body (Is Manual Authorization Enabled is checked from emCA )
{
"status": "Success",
"result": " your request proceded sucssusfully", "subscriberId": "XXXX",
"requestId": “XXXX”
}
Failure:
{
"status":"failure", "result":"<Error message>" “subscriberId”:null "requestId": null
}
Sample for Base64 encoded x509 certificate data
Copy "MIIHCwYJKoZIhvcNAQcCoIIG/DCCBvgCAQExADALBgkqhkiG9w0BBwGgggbgMIIB+DCCAWGgAwIBAgIRAMXqvbqIkM14Ii3WJq25AFswDQYJKoZIhvcNAQELBQAwGzEZMBcGA1UEAxMQUm9vdCBDZXJ0aWZpY2F0ZTAe
Fw0xOTEwMTcwODMxMzdaFw0yMDEwMTYwODMxMz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