Can't update components: "certificate is valid for *.swrve.com, not registry-1.docker.io"

I’ve been trying to update two of my installed components ( Mosquitto broker & Google Drive Backup) for weeks now with no luck. I’ve been able to successfully update Home Assistant core, as I’m running Home Assistant OS in a VM, but not the components that I have installed. Currently I’m running Home Assistant 2023.4.2 and Supervisor 2023.04.0.

I can see in the Web UI that there are updates available for these components but when I try to install them it just sits on “installing” for multiple minutes until eventually just showing the original update modal again without installing anything. Taking a look at the logs I’ve noticed that the issue seems to be coming from Docker call as it tries to create a new container. Below is a snippet of the error log:

File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 169, in async_install
raise HomeAssistantError(f"Error updating {self.title}: {err}") from err
homeassistant.exceptions.HomeAssistantError: Error updating Mosquitto broker: Can't install homeassistant/amd64-addon-mosquitto:6.2.0: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=6.2.0&fromImage=homeassistant%2Famd64-addon-mosquitto&platform=linux%2Famd64: Internal Server Error ("Get "https://registry-1.docker.io/v2/": x509: certificate is valid for *.swrve.com, not registry-1.docker.io")

In this line you can see what I believe is the root of the error x509: certificate is valid for *.swrve.com, not registry-1.docker.io which happens as a result of the Docker container call.

I’m not sure why the certificate would be setup for that domain as it clearly should be for the Docker Registry domain mentioned in the error log.

If anyone has any ideas as to why this is happening I’d really appreciate the input. Thanks!

I’ve done some more testing and updated my DNS settings to force Home Assistant to use 8.8.8.8, 8.8.4.4, and 1.1.1.1 instead of local DNS from my router. This seems to be helping for some things but I’m still getting an error when trying to install addons. The new error message I’m seeing is

Error: Can't install homeassistant/amd64-addon-ssh:9.7.0: 500 Server Error for http+docker://localhost/v1.42/images/create?tag=9.7.0&fromImage=homeassistant%2Famd64-addon-ssh&platform=linux%2Famd64: Internal Server Error ("Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")

Seems to be some issue either with Home Assistant itself or with how it’s connecting to the Docker registry?