retry connection after certificate error

Suggestions for new features in our products, improvements and requirements ...

Moderator: Support Team

Post Reply
derrick
Jr. Member
Jr. Member
Posts: 1
Joined: 25 Oct 2022, 19:22

retry connection after certificate error

Post by derrick »

Session.Connect() supports automatic retrying when a failure is encountered. However, this retry behavior is not performed when certificate errors are encountered.

We prompt our users to trust certificates when this occurs. To simplify the user experience, we want to automatically retry connections after certificate errors. We can implement this retrying ourselves, but it would be preferable if the Session.Connect() handled it for us like it does with other kinds of errors.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3056
Joined: 18 Mar 2011, 15:09

Re: retry connection after certificate error

Post by Support Team »

Hi,

the automatic reconnect has two fold approach: distinguishing between errors which occur "initially" (on first connect) and which occur "later" during operation (but was working initially). Furthermore a decision has to be made on non-recoverable errors (makes no sense to reconnect) and recoverable errors (we hope that it will work on next retry). The idea is to stop when the user has made a configuration error, or in case some user interaction is required to recover.

The not existing "trust" is seen as "non-recoverable", because admin must come and do something (verify cert, and trust) before we can continue. Howerver, I aggree that "try again and hope for the best" may also be a valid use case (i.e. when having GDS in the loop that pushes new trust list).
Best regards
Unified Automation Support Team

Post Reply