E
E
Evgeny Ivanov2018-12-26 12:51:41
Nginx
Evgeny Ivanov, 2018-12-26 12:51:41

How to install https on the server?

VPS, Debian 9, NGINX.
The main task is to protect data from interception (standard). Nothing much more is needed.
This is my first time using https. Therefore, advice from those who have already done this is needed.
Now there is a server - ip. There is no name. On the server there is "one site" - a bunch of folders, scripts.

Using https://certbot.eff.org/lets-encrypt/debianstretch... Doing

this

cd /etc/apt/sources.list.d/
nano  sources.list
добавил туда строку deb http://ftp.debian.org/debian stretch-backports main
apt-get -y update
обновилось

apt-get install python-certbot-nginx -t stretch-backports
норм
sudo certbot --nginx
ошибка
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 1052: ordinal not in range(128)
Please see the logfiles in /var/log/letsencrypt for more details.

googled - they say an error in the name. I don't have a name (yet IP address).
It turns out that you need a name? Am I on the right path or am I doing the wrong thing?
Well, in general - How to install https on the server? Maybe there are more correct solutions, instructions in Russian, explanations.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey, 2018-12-26
@logpol32

The certificate is issued for a domain name. A certificate cannot be bound to an IP address.

B
Boris Syomov, 2018-12-26
@kotomyava

Of course, you need a domain name - a certificate is issued for it.

A
archelon, 2018-12-26
@archelon

In fact, you can issue a certificate for ip, but only OV is much more expensive, it’s cheaper to buy a domain.

K
Kammyshevv, 2018-12-27
@Kammyshevv

Required domain name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question