API Method -getCertificateProfileList

Purpose

Use the “getCertificateProfileList” method for getting Certificate Profile lists by using the Issuing CA name.

Type of Method

POST

Request URL

http://www.example.com/emCAServices/rest/getCertificateProfileList

Request Input Parameters

Parameter

Presence

Data Type

Description

signature

M

string

Pass Signed data you want to validate or verify.

Signed Data will be CAName

userName

M

String

Pass Username that is registered with emCA for API process.

password

M

String

Pass the password that is registered with emCA for API process.

Sample JSON Object

requestData
{
"signature" :
"MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwGggCSABIGLQ049
dGh1bGFzaSxTRVJJQUxOVU1CRVI9QVZBUEc0MjAxQSxFPXRodWxhc2kuZ0BlbXVkaHJhLmNvbSxPPWVtd WRocmEsUz1LQSxDPUlOLFBvc3RhbENvZGU9NTYwMTAzLEtleUFsb2dpcnRobUFuZFNpemU9UlNBLTEwMj QsUGFzc3dvcmQ9MTIzNAAAAAAAAKCAMIIDpjCCAo6gAwIBAgIDTEtBMA0GCSqGSIb3DQEBCwUAMHQxJTA
jBgNVBAMMHENlcnRpZmljYXRlTWFuYWdlciBSb290IDIwMTYxGDAWBgNVBAoMD2VNdWRocmEgTGltaXRl ZDEQMA4GA1UECwwHZW11ZGhyYTESMBAGA1UECAwJQmFuZ2Fsb3JlMQswCQYDVQQGEwJJTjAeFw0xODA1M DMwNTUyNDNaFw0yMDA1MDIwNTUyNDNaMCgxFzAVBgNVBA8MDkF1dGhlbnRpY2F0aW9uMQ0wCwYDVQQDDA
RyYWNhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm4k/r47G8+eRm/zftRSwxg8koTXLEHG JF5MKJZjUsPweASFbxxcj1RwixCHaAP75n3u0JCOFBuOVDMlPMu47j9w+x6jig3IMdVhPo6/rU7Z75Gtw FQDvhLZhoz2VMrSThfjvhaYEiOYy4uhC7sXOVedCw3rFylFtbljgwgnPC6Rp75TesIKj1l+9dZY08OxyI CNUNluztcMOXDqk68rtz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iG9w0BAQEFAASCAQAIjlSTHf+7EXSUuFV7S57vDdYyu5AhE5iJ2dJl03zo/Bc62yM RgWGPpLSTFBjo8102VQIACxfudcCNoV1pfPkTxTyhe/rMv/VnWaMcLLrJZ0JRu7WZgrfHkBZ7p1eIv6LR t/nja93Fuc2M8Jl8B00DeQDNkyjnIN3gVS+0Hr8/ZIfClYa3huxfm8h1PeQHupaZ53UZKONLe7rRVVJGI A2IZwRkXcxk/2Z47qw1hUFvtXokQBbqOj1rDhL3Dh6pOsU9XbXTKGXzmcs0I6RXSB3DHbwQtsPK7neEyJ BbxS0IpiKxY7IZtF2+m+WXmjWQyg7ZIYK0/X96XkYA7W7rcEPjAAAAAAAA",
"userName" : "username", "password" : "password "
}

Parameter

Presence

Data Type

Description

requestData

M

String

All the request input parameters mentioned above should be converted to JSON object and encrypted with AES 256 key shared with you by the emCA team.

Pass Encrypted JSON Object.

userName

M

String

You need to pass username that is registered with emCA for API process.

Header Details

Key

Presence

Value

Description

Application / JSON

M

Content-Type

Type of request should be in JSON Format.

Authentication Key

M

emKey

emKey is an encoded key (Refer section 4 for generating Authentication Key using command prompt).

Sample Request Data

Header:
 
Request Body:


Content-Type : application/json
emKey                    : 47b54594063957de22fce0aeddd51a6adf4a80aa
 
 
{


"requestData" : "DcojYlq57vrFInQ3TypNPKWGZiQ4GXBcIpEaW1hkQxe0qHi5AvBMKnz97dpVOEezet5CoX1UPugOXu2 5w4fqyPKOhnBLkhrg0SDPEJLvGHia+6YlOQe1n3gU8CdWmsLEqhTtdo9EB0R/9xJnd9m/DAmrYx61ChZ YTvlbWu7ZLS7KLukBRNA2zrDtbxEHuArWaMtKPvoqWkQCEZP0srNCGIBq3eChdmHpGgTcVm7QMlFgskX 3gRdm95QfYv3NOYOZrNSORkT3hooVdOu+uL2dj1Re5LsZPJLXYN0cMPsiUG4yHP4ZbE3Bbn1dAb3nbW+ Xr7i+kwmYQ+iObuN/oAX7qjWkxY8GxxmtUBglWBRmsgoGCLQgfy1T9O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A1Xoy2dK+6/vbNa5Ubh9D iPTojliN6lIKkZKxo3vthTrAM5eBo55NmtDP486Q5VVyZfbLbnlvu5i4GF7b9zDMfDYsr2wH3Syhexo2 Emf03mq9o58vIL9mOxCP7nARy90YpKyKFX+bJI6SCTtl5zRl9A587BMoum7oQVK1SR597fhaEhwtYp3P iDe3zOw80463KvfxLAoxIKjfXqP6fG8f1nKTAYFRl6CEHFhdBIZKoawJeb8n/y0TZyuJBx5lFxtuJrVJ NRlM7qVnniUjoumOmU9Fry62KQtkAUnt0hMP8Zc02fmbXH19tVVVnVsuVOhs++IsZ1jnsnp989jDZ77p BMF/8kG6cZhIRgCl2BIsVASyK3CAykbQP0ddM8dtppCxNWnECOG0dCjqWr95eDghJv2QBJKJ+zoKQRhi PZh8hhA=="
"userName":"username"
}

Process

  • When request is received by emCA service, request JSON Object will be decrypted with same AES key that is shared to the client.

  • After successful decryption, request JSON object (Username + Password+ Signature (CA Name)) is retrieved.

  • First emCA service will validate username and password and check if the IP Address used for request and registered with the user are same.If request is registered with same user, then the system checks if any user profiles are associated with the requested CA.

1. If user profiles are available with requested CA name, the result will be displayed in the list of profiles.

  • If validation fails at any point in processing the request, the emCA service will throw error/failure message. (Refer error messages section)

Response Parameters

Parameter

Data type

Description

response

String

Returns JSON Object

JSON Object Contains below parameters

Parameter

Data type

Description

status

String

Returns Status of the request as “Success‟ if requested CA Name is valid.

Returns status of the request as “Failure‟ if authentication fails or unregistered user tries to call the API.

result

String

Returns

In case of “Success‟: User profile details will be displayed

In case of “Failure‟: Error message will be displayed.

subscriberId

String

Returns Subscriber Id

requestId

String

null

Response JSON Format

Sample:
Success:
Response Body
{
"status":"success", "result":"/ProfileName:XXX, ProfileId:XX/,” “subscriberId”:”XXX”
"requestId": null,
}
Failure:
{
"status":"failure", "result":"<Error message>" “subscriberId”:null "requestId": null,
}

Error Messages

Error Message

Description

No certificate is available for CAname: <CAname>"

If the given CA name is invalid

Signature verification failed

If signature parameter (CSR) is not signed by the pfx shared by eMudhra

Last updated