I would like to use ssl encrypt in my website, but im already in the develop proccess, i had purchase the domain ‘.uy’(TLD) and a VPS(with debian 8) in hetzner but for a while in working on it in a local environment with a ubuntu16.10 and apache installation with virtualhosts.
i have the following configuration in my local environment
<VirtualHost *:80>
ServerName mydomain.dev
ServerAdmin staff@mydomain.dev
DocumentRoot /var/www/mydomain.dev
<Directory /var/www/mydomain.dev/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
and then because ‘mydomain.dev’ doesnt exists i put it con /etc/hosts
you know 127.0.0.1 mydomain.dev
in terminal with cerbot
./certbot-auto
i get this error, i know is because 127.0.0.1 isnt a valid ip address but i have to say im more a developer than a sysadmin
Failed authorization procedure. mydomain.dev (tls-sni-01): urn:acme:error:unknownHost :: The server could not resolve a domain name :: No valid IP addresses found for mydomain.dev
is a bit uncommon what im trying to do but just asking if exists some 'trick’
thanks.
warning: my english can be horrible xd