DER length more than 4 bytes: 111

Solved! Go to solution
shyed_abuthahir
Dabbler

DER length more than 4 bytes: 111

 

Hi Team

I am trying to test the VISA DCVV service API using the Visa Development Center Playground tool, but getting a response as 'DER length more than 4 bytes: 111'. 

 

Here are the details about the test for your reference and screenshot from tool.  Could you please advise what has to be updated to make it work.

 

1. End Point : https://sandbox.api.visa.com/dCVV2/v1/PanDB/dCVV2GenerationRequest


2. Request Header : no header as checked-in VISA dev center playground.(Provided correct credentials for usser_ID and password in the Mutual-SSL authentication section)
3. Request Body :

{
"acctInfo": {"primryAcctNum": {
"panExpDt": "2019-11",
"pan": "4108940037956050"
}},
"cardAcceptr": {"clientId": "A98YG89AG80"},
"itemCount": "1"
}

4. Response Header (include the x-correlation-id) - Didn't receive one yet
5. Response Body -DER length more than 4 bytes: 111

Capture.JPG

 

Regards,

Shyed

12 REPLIES 12
jenn_kh
Community Moderator

Re: DER length more than 4 bytes: 111

Thank you for reaching out, @shyed_abuthahir! An agent is looking for a solution for you and will get back to you shortly! If any community members know a solution, please feel free to respond in this thread. - Jenn

DianaTran-Yee
Visa Developer Support Specialist

Re: DER length more than 4 bytes: 111

Hi @shyed_abuthahir,

 

I've logged incident INC13465669 for our engineering team to investigate the issue, I'll provide you with an update once I hear back from engineering. 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

DianaTran-Yee
Visa Developer Support Specialist

Re: DER length more than 4 bytes: 111

Hi @shyed_abuthahir,

 

The code for the VDP Playground may need to be updated. However, please check to ensure that the key you are using in the tools starts with "-----BEGIN RSA PRIVATE KEY-----"

 

If it doesn't, see if you can run the following command by using the resulting key instead.

 

openssl rsa -in privateKey.pem -out key.pem

 

If this still doesn't work, you might have to use the code snippet instead of the VDP Playground Tool.

 

After you do this, please let me know if the issue is fixed.




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

DianaTran-Yee
Visa Developer Support Specialist

Re: DER length more than 4 bytes: 111

Hi @shyed_abuthahir,

 

Is the issue fixed? 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

DianaTran-Yee
Visa Developer Support Specialist

Re: DER length more than 4 bytes: 111

Hi @shyed_abuthahir,

 

I haven't received a reply from you so I'll take you off my contact list. Please do not hesitate to reach out to the community if you need further assistance. 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

amalsur
Dabbler

Re: DER length more than 4 bytes: 111

i was also looking for the same thing

DianaTran-Yee
Visa Developer Support Specialist

Re: DER length more than 4 bytes: 111

Hi @amalsur,

 

Let me know if you need help or if the error is fixed.




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Gnanasekaran
New Contributor

Re: DER length more than 4 bytes: 111

Hi Team,

 Im facing the same error im getting below exception when 'im trying to decrypt the response from VISA. Please help

 

all cert was downloaded from Visa dashboard API credentials and i'm using sample source code give for MLE with 2 way SSL

https://community.developer.visa.com/t5/Message-Level-Encryption/How-to-run-Java-Sample-Code-for-MLE...

 

 

 

DER length more than 4 bytes: 111

 

https://sandbox.api.visa.com/par/v1/inquiry/issuer

 

 

Encrypted Data:

{"encData":"eyJlbmMiOiJBMTI4R0NNIiwiaWF0IjoxNjU0NzQ1OTA1MTgyLCJhbGciOiJSU0EtT0FFUC0yNTYiLCJraWQiOiJhYmUzNDNhMS1mMjM3LTRlZTQtYTdiMi1mNWM1YjI3NTUzMTgifQ.DXPhS-iOLKj52jUyfKM8Bxi8ilsKOEVqKY6WyvQW0SoYD0sS55lvNs5ZKU19M6PQMLclVG5x2nMaKokVP9hvg0qTpWYN0P6LVnWr1IHF-z0K97dnzxVkimlSCRvP96h2H-8EOIN7czzB6jZzjCtrQFnlrdjBazRAY_GYI3ph8HVZR7v4bnA5QNHeRfKzkm45ITx-_M72MmdmNzxadvTLLPyOZUt3bAzllmetj11VWx6cJ7XNmACvXMFJw64Cv8gl066MJuyXXnodMUYxHz_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specialist

Re: DER length more than 4 bytes: 111

Hello @Gnanasekaran,

 

The Payment Account Reference Inquiry API is a restricted product. Were you granted access to this API product? If you already have access to this product, please provide the following information below for further investigation of the error.

 

1. Endpoint
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.