API Method - getPKCS12
Purpose
Use the "getPKCS12" method to obtain the PKCS12 data that was previously generated using the "createPKCS12ById" and "createPKCS12" APIs.
Type of Method
POST
Request URL
http://www.example.com/emCAServices/rest/getPKCS12
Request Input Parameters
Sample JSON Object
{
"password": "eMudhra@1",
"signature": "MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwGggCSABGB7J3BmeFBpbic6ICdlTXVkaHJhQDEnLCdzZXJpYWxOdW1iZXInOidlMDIzZGNjODgwN2FjMDNhY2Y2MTQ3NjhjYTE2MGYyJywnc3Vic2NyaWJlcklkJzonNDY3MzMyJ30AAAAAAACggDCCAvEwggHZoAMCAQICEQCPvFVAcKJy/IrKlom7lvqeMA0GCSqGSIb3DQEBCwUAMHQxJTAjBgNVBAMMHENlcnRpZmljYXRlTWFuYWdlciBSb290IDIwMTYxGDAWBgNVBAoMD2VNdWRocmEgTGltaXRlZDEQMA4GA1UECwwHZW11ZGhyYTESMBAGA1UECAwJQmFuZ2Fsb3JlMQswCQYDVQQGEwJJTjAeFw0yMzAyMTAwNTI2MzVaFw0zMzAyMDcwNTI2MzVaMDAxFTATBgNVBAMTDFN3YWdnZXJUZXN0MjEXMBUGA1UEDxMOQXV0aGVudGljYXRpb24wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT5XWCAXf0tmaIeY/t1DIxluL8Wiq9pvbk2f8Pxb9F0EXElpV6zrD/Zjp6YiY8AJNUrurOIOQmlkzPiQLd9vYM3o4GMMIGJMAwGA1UdEwEB/wQCMAAwIgYDVR0jAQH/BBgwFoAUgrVRaCBCfAEiYlkr6rtaEbNDgsEwIAYDVR0OAQH/BBYEFJI2xxg2aibXB7MX916thnYRz1UPMA4GA1UdDwEB/wQEAwIEsDAjBgNVHSUEHDAaBggrBgEFBQcDAQYIKwYBBQUHAwIGBFUdJQAwDQYJKoZIhvcNAQELBQADggEBAH0lES7w4xXWVC1yNUdE6xyjibuqEppD66bbpd6sLf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RfN7YL+MkOYRv2WU9nIu7R5Q=",
"userName": "SwaggerTest2"
}
Process
When request is received by the emCA service, we will decrypt the request JSON Object with same AES key that is shared to the client.
After successful decryption, request JSON object (Signed signature data + Username + Password) 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 pfx is available with these details then pfx file data will be returned.
If validation fails at any point in processing the request, the emCA service will throw error/failure message. (Refer error messages section)
Response Parameters
JSON Object Contains below parameters
Response JSON Format
Sample:
{
"status": "Success",
"result": "MIIJtAIBAzCCCW4GCSqGSIb3DQEHAaCCCV8EgglbMIIJVzCCBWwGCSqGSIb3DQEHAaCCBV0EggVZMIIFVTCCBVEGCyqGSIb3DQEMCgECoIIE+jCCBPYwKAYKKoZIhvcNAQwBAzAaBBSqPYoEW0ogHRtYdKuoS1iOYnyCPAICBAAEggTIO1+39S8Az1ALJL/J4Oq1Jj+3d1aGubuCZlON6qoWtQIj9Sx16EnSMNeJ8gAActnQISkhFM7PkvXETPydO2+LLHNirf0PNrLj5SP794UYclzqV2mg5WVbf1LpRl+ucJ1etvPFDu4IJ6Rmt2gCqxURGKgblKT0zmmDr+rvPWudUrd8sza3qnR6kMmrelQb6Edkh2//H7VBTvJIx7hrVfbKbXrUaprcncmL1aldNYEHywY5tjC177lZkSGaMvvJ7J3AnY3wLwz5mJ3CXHmZOXOoIty3Bp4wYQEnWClSI8ZHBSIbFsBXu5UQOW1xn4XNz13hNgVMueqzDxoBSY8dDH7Ue+NhxdnYh44FhZdLprCxZs4ClA95cNlzm2s5ifxK1fwdXR0ZqlouPOWkciOJg28Xs58bCtr+D8gjj/HHQUZBM79DLBu5WrT/pMzs3Y4ajCSc54p9B2QiUvVfO/jjFuefCdQClwZe/Vwc7GsLjO/mIQ5/bK+HEbUycv+3XRZtTq6kwer/8e4p+HrXMEs6ClXQhl7bm/S9qgo0SGEe2rGh0GQzlShDV1AoJpU6UmJm9p71PHJXpzBuGmnVyvDUCuNn22LiJerZUP8JNfk6xjdkf6wNQIg4BP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BUPTU2KMFCSIo7F2I7eDoH0cKAwAp/CS2of0DS7/7eh6wQO07iarpIHT1x2cZHyQrnmyDfpFUBJAwWujswEexRSw2gDAvFDaIClQYb142vgIlxdDosHa2WDw3voVtd5+qnb+koyXZ7+JeAivh5gjzJQ+j9kbqZzaHMjq/Gx0MKdXYUvunyNnyzdGgHwhNN/mEiynKKN7Rv8ZoKrjtAeqpAjeOf/LJ3kpI1iOJVFZ5NVm1TYB/k8mUrhdDI+ z57J1NbDOv3GDiMERt1FmDgzbKRYzA9MCEwCQYFKw4DAhoFAAQUoUAgvKa7Mpx8at2xh9jQ9gD23Q8EFBWmPabQrom63kjd2vi350aNTo+wAgIEAA==",
"subscriberId": null,
"requestId": null
}
Sample for base 64 encoded x509 certificate data
“Guqbfvhe3e3JHoe4a1nTw7Pp3foWFhpvDS90TccqiWk2Spx6Pny3AhH1P4907keBK5lbYf/XZNw/u0/r1qhvpZc7zs6dJKdVOXVk3hTXNxqUasBIZbwneI7EZcdkUc74DUJTwwBEYzw49iOBY78yeJY37lSI+st6w0IsVOOk37diOOmA4ANDPiWDt9Ov94ZHX+NeM2tojkm7Pr2dMV6nfVo5lW429JeSsvQ9/xVUsat1w5RDci+GeS0rkXuHZpWGucWOl5GaZwJBHga8rfvrQ8zEODZF6b5Hilqzv9q49j88KKjf1mVh88nv2lqUbWFP4CFGPL17HFvHye+Ni6oo8QiQi1fUoEKzCYhRK5zlaLoObHhyLXo4bZY/gV87eIvxkkq0HnpwUUigWemdCRzPVftQqyrJeOC/L04p22w85FTHH/xufsMJ2loeByFpO8iO9DttzTy666WcNaW6gQYGHggQFhw00Ukdbsml7ZTo3fAyLG+72YxhiJQ2j+O9BonaDQtnEyK7otTjVNhSpHG+ZHQcv/elpfnrKnOQRbWZ9DYhLFnFJkFsBwcpXpE+aPH3eJGU2tK7lyvaeZU5FtJLVjq5Tbiu1MWN75oHApq0dAbl4ZGpE/2c+g2Eib29HbpyPPno/32ZzzVnIQ4ztSoG8T+qe88etZq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