Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
The History
I try to enable ssl certification on my webserver with a self signed certificate. All works fine but after that, some parts of civicrm couldn't get loaded by the browser.
The Problem
In result that part can't get loaded, my interface look like that:
The civicrm main menu is displayed under the main page (https://myserver.de/civicrm/dashboard)
Thats because the different css files could't get loaded:
Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
The Question
How can I repair this effect? On different subsites, I have different files that could't loaded. So civicrm is like unusable in this state.
000-default.conf
It not that often that I setup a webserver, so it is likely that I make a mistake here. IMPORTANT: The error exist also without the #CERBOT
part. I install cerbot because I hoped to resolve the problem with that.
<VirtualHost *:80>
ServerName myserver.de
ServerAlias www.myserver.de
Redirect permanent / htttps://myserver.de
#CERTBOT
RewriteEngine on
RewriteCond %{SERVER_NAME} =myserver.de [OR]
RewriteCond %{SERVER_NAME} =www.myserver.de
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerAdmin admin@myserver.de
DocumentRoot /var/www/html/
ServerName myserver.de
ServerAlias www.myserver.de
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
<Directory /var/www/html/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html/>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>
#CERTBOT
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/myserver.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/myserver.de/privkey.pem
</VirtualHost>
Example
File: /var/www/html/sites/default/files/civicrm/persist/contribute/dyn/crm-menubar.74dfb4b0c37ba64f9da2e78c3981347e.css
stat:
File: crm-menubar.74dfb4b0c37ba64f9da2e78c3981347e.css
Size: 12302 Blocks: 32 IO Block: 4096 regular file
Device: 801h/2049d Inode: 522909 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 33/www-data) Gid: ( 33/www-data)
Access: 2019-11-11 10:49:16.970964203 +0000
Modify: 2019-11-11 10:49:16.970964203 +0000
Change: 2019-11-16 12:40:57.203548994 +0000
Birth: -