cinderblocks / libremetaverse

An fork of the libopenmetaverse library striving for performance improvements and up-to-date compatibility with SL/OS/Halcyon
BSD 3-Clause "New" or "Revised" License
60 stars 40 forks source link

InventoryAISClient / UpdateItem Fails #39

Closed Madpeterz closed 3 years ago

Madpeterz commented 3 years ago
Message given:

Warning: The SSL connection could not be established, see inner exception.

What where you trying todo:

Rename a item.

Grid:

Secondlife

Example code:
InventoryItem item = Client.Inventory.FetchItem(target, Client.Self.AgentID, 3000);
if (item != null)
{
     item.Name = "New name here";
     Client.Inventory.RequestUpdateItem(item);
      return true;
}
return false;
Madpeterz commented 3 years ago

Notes: from my testing it seems like the SSL cert is not trusted (or not loaded) by bypassing it

            clientHandler.ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; };
            httpClient = new HttpClient(clientHandler);

at the top of the class it works.

currently testing if I just did not load the cert

Madpeterz commented 3 years ago

Closing issue as I have a work around for now I will do more testing with just the normal build later.

https://github.com/Madpeterz/libremetaverse/tree/AISClient-ignore-ssl-errors