I have read many articles on certs on a subdomain, but I'm still confused.
My hope is someone can explain how this needs to be configured.
I have a production server (hosted VM) for my site (eg. https://www.example.com, ip: 1.1.1.1). I have an application that I host on a machine on my home network (eg. ip 2.2.2.2).
I would like a subdomain - dev.example.com - to point to 2.2.2.2 (I configured this with an "A" DNS record on 1.1.1.1 and this works properly).
However, I would like to use a certificate (Let's Encrypt) to be able to secure incoming connections to https://dev.example.com.
Here is what I would like to know:
- Is this possible?
- If so, should the cert be installed on 2.2.2.2? Does the cert need to be setup in a certain way?
I appreciate any articles or info.
Bonus question: Does the complexity of the setup in my home network matter? For instance: I have a router that directs port 80, 8080 and 443 to a VM web server. This server then use Proxy / Rev Proxy to redirect traffic - based on folders (eg. dev.example.com/app34) to the specific Application server (192.168.0.34). Will any of this affect the cert setup?