SSL verification error: unable to get local issuer certificate

Since I upgraded to Python 3.11 I’m facing SSL verification errors on some integrations.
I’m running HA Core 2023.7.1 in a virtual Python env. Has anyone an idea about this error and how to solve?

This is the full log:
2023-07-10 09:04:55.985 DEBUG (MainThread) [custom_components.husqvarna_automower] Exception in async_setup_entry: Cannot connect to host api.amc.husqvarna.dev:443 ssl:True [SSLCertVerificationError: (1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)’)]
2023-07-10 09:04:55.994 DEBUG (MainThread) [custom_components.husqvarna_automower] Finished fetching husqvarna_automower data in 0.253 seconds (success: False)
2023-07-10 09:04:55.995 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘husqvarna_automower’ for husqvarna_automower integration could not authenticate

FYI: solved by these commands:
sudo rm -r /usr/local/ssl/certs
sudo ln -s /etc/ssl/certs /usr/local/ssl/certs