How to set SSL in Localhost


My Conf vHost:

<VirtualHost *:80>
    DocumentRoot /media/arcaela/server/Servidores/bulletcoin/
	<Directory /media/arcaela/server/Servidores/bulletcoin/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Allow from All
		Require all granted

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined


Lets Encrypt Error:

 - The following errors were reported by the server:

   Type:   None
   Detail: DNS problem: NXDOMAIN looking up A for


Setting a domain name in your local hosts file doesn’t equate to having a registered domain.
Nor will it ever resolve globally to any IP you may put there.

Start here:


Do you own the domain name I don’t see it as having been registered. You are only able to obtain certificates for domains you are in control of.


Well, i have a domain in GoDaddy but not have hostinger, domain only, i can afiliate that domain to Let’s Encrypt?


The short any is yes - you can get a cert for a domain you own.
But if you don’t have it hosted anywhere…
Why do you need a cert?
What would you do with it?


Will explain you, i dont speak english very well, but will try:

I have apache2 in linux, i free my ports configure Firewall, i can enter to my localhost from another PC on internet, but my ip change with every reboot, i buyed a domain in GoDaddy “” without hosting, domain only, but how to install “cert to in my localhost”.?


Hi @arcaelas

your domain points to a Godaddy - parking website. This is a problem if you want to use http-01 - validation.

But you can use dns-01 validation. Which certbot command did you use? Add

--manual --preferred-challenges dns

then you have to create a dns txt entry with the name

and a special value.


Just speak in whichever language you can best express yourself.

There are (free public) Dynamic DNS services that can compensate for this situation.