Self signed certificate issue with WooCommerce rest api connection

You can disable the ssl verification by using 'verify_ssl' => false. So in your code you should change:

[
      'wp_api' => true,
      'version' => 'wc/v3',
      'sslverify' => false,
  ]

to:

 [
        'wp_api' => true,
        'version' => 'wc/v3',
        'verify_ssl' => false,
    ]

Then you don’t need to change any source code.