Unable to use APIs which require RSA encrypted data

Greetings,
We’re currently unable to use APIs which require RSA encrypted data as we receive/
Hit URL: - {{URL}}/cm/v1/apps/phrAddress/auth-confirm
Body passed: -
{
“authCode”: “{{auth_code}}”,
“requesterId”: “{{req_id}}”,
“transactionId”: “{{tx_id}}”
}
Error after encrypting only auth_code/password: -
{
“error”: {
“code”: 1417,
“message”: “Input Data must be encrypted. Plain text is not allowed.”
}
}
Error after encrypting all parameters: -
{
“error”: {
“code”: 1510,
“message”: “Please enter a valid UUID Number.”
}
}

The method used for login is password.

First Hit This URL

https://phrsbx.abdm.gov.in/api/v1/phr/public/certificate

then go to https://www.devglan.com/online-tools/rsa-encryption-decryption

Remove -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- and insert in public RSA key in website

MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7Zq7YKcjmccSBnR9CDHd 6IX96V7D/a2XSMs+yCgejSe956mqjA/0Q9h+Xnx7ZZdwe2Tf2Jq/mWXa+gYdnta5 8otreXg/5oGnNV3Edlixz1Oc8tJg5bG4sIUCGZcbEQGSbm1iC+Fp1kS+YLVG4Su8 KoRxcCvRJI2QkfqAruX3JoFjggOkv0TgWCo9z6NV6PPmPN3UsXyH3OPDi3Ewnvd6 4ngCUKPSBiIDwhLj2yYSShcxH8aWbrz00SJodBJzqgjvCfZuljBXXIN4Ngi/nzqE J7woKQ1kNgWoHFZy7YL74PihW//4OlniSRoITX+7ChILIv2ezSmAdIjpNJ9Dg9XK cQIDAQAB

Now you can encrypt data

did the same but still the same error

Hi @sankalp
I too used the api (https://phrsbx.abdm.gov.in/api/v1/phr/public/certificate) you mentioned for encrypting mobile number used in https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp api. I am getting invalid loginid


could you kindly help me?

Hi
Please use this URL for v3 api encryption - https://healthidsbx.abdm.gov.in/api/v1/auth/cert

Regards,
FIME