Unauthorized error

Url : https://healthidsbx.abdm.gov.in/api/v1/registration/aadhaar/generateOtp
Screenshot_20230201_165252|690x388
{

"timestamp": "2023-02-01T11:11:46.557+0000",

"status": 401,

"error": "Unauthorized",

"message": "Unauthorized",

"path": "/api/v1/registration/aadhaar/generateOtp"

}
@Areeb

You have to encrypt the aadhaar number
https://healthidsbx.abdm.gov.in/api/v2/auth/cert for V2
You can check encryption info here https://hpridsbx.abdm.gov.in/api/swagger-ui/index.html?urls.primaryName=HP-ID%20Sevice%20V2#/

Okay. We will implement this process for encryption.

Hi , do you have the documents regarding this issue ?

Hi , have you found the solution ?

Hi
RSA Encryption to encrypt the data. Cipher Type - RSA/ECB/PKCS1Padding . online tool to encrypt data - https://www.devglan.com/online-tools/rsa-encryption-decryption
Use this url for public key - https://healthidsbx.abdm.gov.in/api/v2/auth/cert