VS Code - Error Self signed certificate

Hi,
I finally managed to get smb to work for me, and now I want to use VS Code with the OH extension.
I installed VS Code, the extension and added my host and port (OH runs on a raspberry pi) in the settings.json:

{
    "openhab.host": "172.24.20.233",
    "openhab.port":8080,
}

Every time I try to load ITEMS or THINGS in the extension, I get the error:
Error while connecting to openHAB REST API. self signed certificate

This is strange because I can use REST API (with Insomnia) on the same computer without problems.

Anyone knows why this happens?

Either the self-signed certificate is not trusted by VS Code or they will not trust self-signed certificates.