Install Let’s Encrypt SSL Certificate on CentOS 8

Thank you so much for your help.
It configured the Apache automatically, but some problems exist:

I edited the “/etc/hostname” file and added below line:

127.0.0.1       www.mydomain.net    localhost

But problem not solved. How can I solve the “Alternative names” problem?

Thank you.