Problem with ssl, broken site I want to install Drupal in https, but I failed.The page is trying to open resources (css, etc) in http. How to solve this ?
In Drupal 7 you could set the $base_url='https://example.com'; in /sites/default/settings.php. 

For Drupal 8 it looks like $base_url has been removed in favor of trusted domain patterns which are protocol agnostic. Using .htaccess rules seems to be the recommended approach.

In .htaccess below RewriteEngine on

  # Redirect to HTTPS
  RewriteCond %{HTTPS} off
  RewriteCond %{HTTP:X-Forwarded-Proto} !https
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


That's from this page: https://www.drupal.org/https-information