I use Firebase Hosting to host my website and a VPS to host a mailserver for the same domain.
When I try to issue a certbot Let's Encrypt SSL certificate I get the following error:
Could not request a Let's Encrypt SSL/TLS certificate for
example.com
.Go to http://example.com/.well-known/acme-challenge/[long_string]
and сheck if the authorization token is available.
If it is, try to request the certificate again. If the token is not available, there may be an issue with your DNS configuration.
This URL leads to my 404 error page.
It can't issue the certificate because my website is hosted in a Firebase Hosting IP address, while my mailserver has another IP address.
What would be a viable way to get SSL for my emails? Can I get the SSL certificate from Firebase and import it in my VPS using a cron job to keep it up to date? Even if possible, this seems like a cumbersome solution to a simple problem.
Disclaimer: this question was originally asked by me on StackOverflow yesterday.
http-01
is one but you have alsodns-01
that doesn't need a webserver at all.