Cannot add nextcloud to truenas scale over webDAV

Hello! I am trying to get nextcloud to sync to truenas scale over webdav, but i’m faceing problems i think with SSL certificate.
How to add SSL certificate to work without actual domain ( i want this in local network). Is it possible to get ssl in local network?

Truenas scale is giveing this error when connecting to nextcloud over webdav:

Error: <3>ERROR : : error listing: couldn't list files: Propfind "https://192.168.8.221/remote.php/dav/files/admin/": x509: cannot validate certificate for 192.168.8.221 because it doesn't contain any IP SANs
Failed to lsjson with 2 errors: last error was: error in ListJSON: couldn't list files: Propfind "https://192.168.8.221/remote.php/dav/files/admin/": x509: cannot validate certificate for 192.168.8.221 because it doesn't contain any IP SANs

Plese help me fix this error.
Best Regards, Eduards

Unless you plan to add a real certificate to your Nextcloud Server environment, this is probably a question better suited for the TrueNAS forums since the error is coming from that side of things.