Unable to record a HTTPS VS using DevTest Portal. Getting the error: "DerInputStream.getLength(): lengthTag=109, too big.. Please choose a different port."

book

Article ID: 7520

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

When trying to record a virtual service for a target URL using SSL, I provide the keystore under "Select Certificate Presented to Server" and the Portal allows to proceed with the recording.

When I select "Start Recording", I get the following message "DerInputStream.getLength(): lengthTag=109, too big.. Please choose a different port". 

Cause

In DevTest 9.5.1 and earlier, the Portal recorder will show all keystore entries once the keystore password has been entered.

The problem with showing all entries is that it allows a user to potentially pick an entry for a trust public certificate instead of an entry for a private key.

DevTest needs a private key entry to identify ourselves properly during SSL communication.

Environment

DevTest on release 9.5.1.

Resolution

Select the alias for the private key under the SSL Key Alias field in the Portal VSE Recorder.