Failed to connect: Error: TrustFailure (Authentication failed, see inner exception.)

Exactly the same as below? A fix can be operating-system specific. Destination might matter less though.

If your system is truly the same, let’s ask @Patrick_Domingues to see if there is an update on solution.

A System.Net.WebException: Error: TrustFailure error occurs has a certmgr line that may help diagnosis.
Make sure your system is up to date on its software updates. I had thought that Ubuntu had fixed this one.

Ubuntu
ca-certificates package
Distrust "DST Root CA X3"