Let’s Encrypt SSL Certificate on CentOS 8.

Issues related to configuring your network
Post Reply
hack3rcon
Posts: 663
Joined: 2014/11/24 11:04:37

Let’s Encrypt SSL Certificate on CentOS 8.

Post by hack3rcon » 2020/09/01 19:08:05

Hello,
Why I can't change the value of "ServerName" in below file?

Code: Select all

$ cat /etc/httpd/conf.d/wp-le-ssl.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin root@localhost
ServerName mywebsite.net
ServerAlias www.mywebsite.net
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
DocumentRoot /var/www/wordpress
<Directory "/var/www/wordpress">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/httpd/wordpress_error.log
CustomLog /var/log/httpd/wordpress_access.log common


Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mywebsite.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mywebsite.net/privkey.pem
I have "Alternative Names" problem:
SSL-2.PNG
SSL-2.PNG (40.87 KiB) Viewed 78 times
When I change that value then Apache can't start and show me below error:

Code: Select all

# cat ssl_error_log
[Tue Sep 01 23:23:12.171835 2020] [ssl:warn] [pid 349886:tid 140135623199040] AH01909: www.mywebsite.net:443:0 server certificate does NOT include an ID which matches the server name
[Tue Sep 01 23:23:12.228405 2020] [ssl:warn] [pid 349886:tid 140135623199040] AH01909: www.mywebsite.net:443:0 server certificate does NOT include an ID which matches the server name
Should I use any key?

Thank you.

Post Reply

Return to “CentOS 8 - Networking Support”