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
	</Directory>

	ServerName bulletcoin.es
	ServerAlias bulletcoin.es
    ServerAdmin arcaela12@gmail.com
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

My HOSTS:
127.0.0.1 bulletcoin.es

Lets Encrypt Error:

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: bulletcoin.es
   Type:   None
   Detail: DNS problem: NXDOMAIN looking up A for bulletcoin.es

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: https://letsencrypt.org/getting-started/

1 Like

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

1 Like

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 “bitcommersecash.com” without hosting, domain only, but how to install “cert to bitcommersecash.com 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

_acme-challenge.bitcommersecash.com

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.

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