I haven’t caught up to the whole thread but may I suggest you give a look at the EpicorRest NUGET we’ve written which handles all Epicor endpoints including certificate validation and is available for
.NET 4.8
.NET 6
and .NET Standard
It is fully documented and well understood and used in hundreds of projects. It may make your life much easier.