There are some things that are not explained in the formulation of the situation, so I will attempt to explain how it should be and then you feel free to ask further or tell me more details, so I can explain.
- At Godaddy you have also a server with nginx? if so, for the domain
www.mynewdomain.com
the best is to obtain the cert there where the domain is pointed at. Let's encrypt can not issue a certificate for a server different from where the domain is pointed to without doing some "special changes on DNS or HTTP content". This is for security reasons. If you need to generate a certificate on server A for server B, then you need to use manual mode. The cons with doing manual process is that well all has to be done by you.
If you do not have a server in Godaddy, then explain and I will come back to you if i happen to know about it. To henerate the ssl for godaddy from home you can do the following:
certbot -d mynewdomain.com --manual --preferred-challenges dns certonly
Then it will gove you an output like this
Please deploy a DNS TXT record under the name
_acme-challenge.mynewdomain.com with the following value:
IzH_mRZS7DsUxW1UdWjVWihMetUoLEROLHnGzHnTJ34
Before continuing, verify the record is deployed.
Then on the DNS create the record:
_acme-challenge.mynewdomain.com 300 IN TXT "IzH_mRZS7DsUxW1UdWjVWihMetUoLEROLHnGzHnTJ34"
This will generate allow you to generate the cert files. Which should be uploaded to Godaddy's appliance. If the godaddy applicance does not support SSL termination, then you need a different solution.
- Another problem is how to pass requests to the
mydomain.ddns.net
server. If you do pass the requests over http, there are no problems, but people can attack you with man in the middle more or less easily. So if security is paramount, do not use this method unless you have some form of VPN from home to the Godaddy server. If you want to pass https to the backend (mydomain.ddns.net
), then you have another issue to solve because you have already unpacked https on the www.mynewdomain.com
. What you need here is "Upstream SSL" you can check this docs.
What i just wrote does no explain in concrete details with configs, etc, because I need more details about the situation and what you really want. I hope This helps, but if this is not what you wanted, please explain in more details about the setup you have. What the different enpoints are, current configs, how do you want to set it up (where has to be ssl and where not), etc.