Can dev env use release env's certs?

i have a published web server , served by centos7 apache2.2
i want to change the CA to LE
but i have a question
in my local dev env by virtualbox, can i use the certs that is created by released env ?

I’m not sure I 100% understand your question…

if your published webserver is and you have a certificate for, then yes you could place that certificate on your dev environment (virtualbox) and it would work for the domain (you would need to change your hosts file or something to reach your dev environment by the domain name of course )

If your dev environment uses some otehr domain name ( eg ) then the certificate for wouldn’t be valid on

Does that answer your question ?

yes, thanks
that is the answer what i needed

FYI, a common approach is to do this:

  1. Set dns for to your production server with a TTL of 60seconds.
  2. Generate a LE certificate for on production.
  3. Update dns for to (or whatever your LAN ip is)
  4. copy the certificate over from production onto dev

That gets you a release environment certificate onto a private lan, without having to deal with any networking.

1 Like

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