"hosts" file and get a SSL certificate.
by n00b_noob from LinuxQuestions.org on (#5804W)
Hello,
I'm using CentOS 8 as a web server. My web server hosting a WordPress website and web site name is "my-example.net" (It just an example).
I want to know is my "/etc/hosts" and "/etc/hostname" files are OK or not.
Code:$ cat /etc/hosts
#127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
"My Web Site IP" my-example.net my-exampleAnd:
Code:$ cat /etc/hostname
#localhost.localdomain
my-exampleI want to get a HTTPS certificate from Let's Encrypt website and I read in some websites that these two files are important for get a SSL.
Thank you.


I'm using CentOS 8 as a web server. My web server hosting a WordPress website and web site name is "my-example.net" (It just an example).
I want to know is my "/etc/hosts" and "/etc/hostname" files are OK or not.
Code:$ cat /etc/hosts
#127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
"My Web Site IP" my-example.net my-exampleAnd:
Code:$ cat /etc/hostname
#localhost.localdomain
my-exampleI want to get a HTTPS certificate from Let's Encrypt website and I read in some websites that these two files are important for get a SSL.
Thank you.