XiaoFaye / WooCommerce.NET

A .NET Wrapper for WooCommerce/WordPress REST API
MIT License
393 stars 218 forks source link

SSL expired error when certificate is not expired #652

Closed audigex closed 1 year ago

audigex commented 3 years ago

When calling Product.Images.Add() followed by Product.Add(), I get an error

SSL certificate problem: certificate has expired

However, when requesting the URL that's throwing the error, the certificate doesn't expire for another 2 and a half months

https://buildabundle.co.uk/wp-content/uploads/2021/10/B-0003-12434.jpg

Wordpress version: 5.8.1
WooCommerce version: 5.7.1
WooCommerce.NET version: 0.8.3

  1. Upload a file using wordpress's Media.Create()
  2. Call product,images.Add() with the URL of the file created above
  3. Call Product.Add()

On calling Product.Add in WooCommerce.NET, I get the SSL error, despite the domain's SSL certificate being fine