Using an SSL certificate for my domain which only has redirect enabled
I have a domain registered with Godaddy, for which I have enabled the redirect service. This means http://domain.com will be redirected to http://domain.io. In fact, this works for both http and https, but when using https:// the browser is first showing a warning that the site might not be secure. That is because the certificate offered (probably the redirect service?) is not matching my domain.
Hosting of the website for this domain is outside GoDaddy.
I have certificates both for domain.com as domain.io, and I would want to get rid of this SSL warning blocking the redirect on https. How can I accomplish this?