HI
I m using api “apps/generate/otp” and getting response
“Input Data must be encrypted. Plain text is not allowed” however i m Encrypting data with public key with algo “RSA Encryption .Cipher Type - RSA/ECB/PKCS1Padding”
Can you give me steps how encrupt data and got success response,
My request is below:
curl -X ‘POST’
‘https://dev.abdm.gov.in/cm/v1/apps/generate/otp’
-H ‘accept: /’
-H ‘Accept-Language: en-US’
-H ‘Content-Type: application/json’
-d ‘{
“value”: “h+wz952ja5uoARbR0MyVTWMnCyPw9k7XURotrJx4cODpiLZhRNHS8hwJTsp6Z+nxKZb4JW3W814+Z8ZWCVcOrB2ntg2vDO7dGuxQd/zA3jbOshnnIQ9VHej707NsjU7pg90IFUJYhEgtbCf56AXKpMI3K9HiOXwH6iBf468JWYjiOtzbqzqCXB7JWOUGW4IGYF+kSoUp9wexG5VqoBprsyc3XtGjHw53Jusd2t2ByzIit7/WERQ7jhu/faWxJULeyHjiejGQgym3SWOuT4J0KJIGCTS2qixH60iXDOXfaRnRo5UuuoWKEbj+owpl6JvPAA+jVZbrnODw7wNK3E7bvIyKsgpLF4/Q4I7XLyVWJRiMYkB6eI1YbFBCLVZbPg5Eg5f3FYqjQEqd2BDn1qmc4dxBbMtIYYJPvmr0jU2b5iL1saa2hUytkyj5NBh0bezl4RU4GDxamay6H/yr8ALvtsqZHtoYKAD4dAeO/8V/66qpH/bzcQo6y4ep0L0Fyl2wwQY+QfVbvAUYVe2SldNxSzGWXhBmvLQUdEod3g7Q8BLySvQNenBFJ1U/sHw/JxL94dWGkZdVx+nyTaVwJoCwvzyxgWCG8ZzDfAH8YW6z3Xky8myRByoLOekoj8wQ5v+gO7ZPwYUCPneEiWY4O4xFhsinRiyMGOy6KJYwYCdJZlg=”,
“authMode”:“MOBILE_OTP”
}’