How to obtain certificate for redirected site

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: forest-house.tk

I ran this command:certbot --nginx

It produced this output:

My web server is (include version): nginx

The operating system my web server runs on is (include version): debian buster

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): latest

I have a domain forest-house.tk. It redirects to the domain I got from the DDNS provider, for example abc.ddnsprovider.com. Nginx uses this name (abc.ddnsprovider.com) to maintain the site. How can I get the certificate for forest-house.tk ? When I launch certbot --nginx it suggests to obtain certificate for abc.ddnsprovider.com but I need the certificate for forest-house.tk.

when you say redirect, I assume cname?

you can write it explicitly, either in nginx or certbot.

certbot --nginx -d forest-house.tk

You don’t actually have a redirect. The dot Tk-service you have is based on a HTML <frame> element, provided by the dot-tk service. Therefore, it is impossible for you to get a certificate for forest-house.tk with your current setup, because that’s something only dot-tk could do.

2 Likes

read what @Osiris said. you need to handle this with dot.tk

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.