I have a webapp running in a public domain using a ssl certitifcate provided by https://gethttpsforfree.com/
It works like a charm.
The problem is that sometimes i need to install this webapp directly in clients servers in intranet networks (not in my domain) and it need another certificates for a specific hostname in clients intranet.
Since, I don't want to share my real domain private key nor add security exception for each client browser connected, how to solve this problem?
In step 2 of https://gethttpsforfree.com/ I can add others domains to be secured, I think it would resolve the issue, but not sure if by creating a new certificate will invalidate my previous one.
Anyone can give me any tips on how figure out this problem ?
Update: Actually, I found a way:
1) Create a subdomain in my internet domain;
2) Generate a let's encrypt certificat for this subdomain (internet.domain.pem and internet.domain.key);
3) Set the webapp(apache) with this internet.domain.pem and internet.domain.key;
4) Set the intranet dns of internet.domain to intranet webapp server;
The certificates are valid in my docker containers tests, worked like expected. But, I'm not sure if is nothing wrong with using a intranet.domain.com to generate a valid certificate to use in intranet only changing dns intranet.
Can someone help me see if I'm generating some critical security issue (and what is) ?