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

Document ID : KB000007520
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

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". 

Environment:
DevTest on release 9.5.1.
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.

Resolution:

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