Article 5804W "hosts" file and get a SSL certificate.

"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.latest?d=yIl2AUoC8zA latest?i=U61scZyfJZs:YEMXKawsGps:F7zBnMy latest?i=U61scZyfJZs:YEMXKawsGps:V_sGLiP latest?d=qj6IDK7rITs latest?i=U61scZyfJZs:YEMXKawsGps:gIN9vFwU61scZyfJZs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments