Apologies for not following the format. I’m not using LE yet, but am still trying to gather some information regarding certificates generated by LE (or any CA).
Let’s assume we’re working with the following (sub)domain name: app.example.com.
This domain points to the following public IP 188.8.131.52.
Both the domain name and IP are under my control.
The certificate is generated on the machine reachable at the above mentioned IP, and all is well.
I now copy the certificate to a web server on a private network, let’s say: 192.168.1.1 and have it load and use the certificate.
On the client machine I change the hosts file to point app.example.com to 192.168.1.1, and try to reach https://app.example.com. Will this successfully serve the web page over HTTPS using the previously generated certificate?
After some digging and gathering information from different sources, I believe this is possible, but I’m not 100% sure. So, I hope to get some clarification here.