Pihole (on proxmox) integration not connecting

Hi,
I’m upgrading my setup and I’ve switched from a raspberry pi4B with pihole running to a Proxmox server with PiHole container. The official integration always worked with pihole on dietpi (used untile this morning without issue) but now that I’ve a proxmox instance on pihole I get “Error: connection refused” when trying to add a new integration (I’ve deleted the old one).
I’ve setup the correct IP address, the new API key generated form pihole interface and tried both port 80 and 443 (and verified that they are the correct port for proxmox installation) but nothing works. I can access correctly the pihole dashboard from the browser.
Here the log from HA

> Logger: homeassistant.components.pi_hole
> Source: components/pi_hole/__init__.py:209
> integration: Pi-hole (documentation, issues)
> First occurred: 15:32:33 (17 occurrences)
> Last logged: 16:40:07
> 
> Unexpected error connecting to Pi-hole v6 API at https://172.16.1.10:80: Cannot authenticate with Pi-hole: Cannot connect to host 172.16.1.10:80 ssl:default [[SSL] record layer failure (_ssl.c:1032)]. Trying version 5 API
> Unexpected error connecting to Pi-hole v6 API at https://172.16.1.10/admin:80: Cannot authenticate with Pi-hole: Cannot connect to host 172.16.1.10:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1032)')]. Trying version 5 API
> Unexpected error connecting to Pi-hole v6 API at https://172.16.1.10/admin:443: Cannot authenticate with Pi-hole: Cannot connect to host 172.16.1.10:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1032)')]. Trying version 5 API
> Unexpected error connecting to Pi-hole v6 API at https://172.16.1.10/api:443: Cannot authenticate with Pi-hole: Cannot connect to host 172.16.1.10:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1032)')]. Trying version 5 API
> Unexpected error connecting to Pi-hole v6 API at https://172.16.1.10/api/auth:443: Cannot authenticate with Pi-hole: Cannot connect to host 172.16.1.10:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1032)')]. Trying version 5 API

maybe try without SSL

Already tried and still no connection.