Secure Bridge 9.2 inner Exception lost

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
Marek-2
Posts: 5
Joined: Tue 28 Apr 2020 06:04

Secure Bridge 9.2 inner Exception lost

Post by Marek-2 » Sun 07 Jun 2020 18:51

I am trying to use atPublicKey authentication in SFtp component.
It works fine.
I have tested what happens if the key is corrupt (simply edited the key).
I get an exception on TScSFTPClient.Initialize() method - it is right.
The exception message is: "An error occurred when signing data: %s"
I saw in the debugger that another exception appears first: "Invalid PCKS1 padding, data is currupt".
This exception is lost.
It would be nice to see:
"An error occurred when signing data: Invalid PCKS1 padding, data is currupt ".

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Secure Bridge 9.2 inner Exception lost

Post by ViktorV » Fri 19 Jun 2020 15:05

From the security perspective, the behavior is correct. We're not planning to change it, though you may purchase the SecureBridge Professional with source code and implement the needed functionality yourself.

Post Reply