title: CloudFlare Invalid SSL certificate
body: <p>I have a Laravel 8 application.</p>
  <p>I have no idea what I missed. I'm trying to deploy a site in my server.</p>
  <p>I kept getting :</p>
  <p><strong>Invalid SSL certificate</strong></p>
  <p><a href="https://mybabies.app/" rel="nofollow noreferrer">https://mybabies.app/</a></p>
  <hr />
  <pre><code>server {
      listen 443;
      ssl_certificate /etc/nginx/ssl/mybabies.app.crt;
      ssl_certificate_key /etc/nginx/ssl/mybabies.app.key; 
  
      server_name mybabies.app www.mybabies.app;
  
      root /home/bheng/mybabies/public;
  
      index index.html index.htm index.php;
  
      charset utf-8;
  
      location ~ \.php$ {
          try_files $uri =404;
          fastcgi_split_path_info ^(.+\.php)(/.+)$;
          fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
          fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          include /etc/nginx/fastcgi_params;
      }
  
      client_max_body_size 500M;
  
      location = /favicon.ico { access_log off; log_not_found off; }
      location = /robots.txt  { access_log off; log_not_found off; }
  
      access_log on;
      access_log /var/log/nginx/access.log;
      error_log  /var/log/nginx/error.log error;
      error_page 404 /index.php;
  
      # Media: images, icons, video, audio, HTC
      location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff)$ {
          expires 1M;
          access_log off;
          add_header Cache-Control &quot;public&quot;;
      }
  
      # CSS and Javascript
      location ~* \.(?:css|js)$ {
          expires 1y;
          access_log off;
          add_header Cache-Control &quot;public&quot;;
      }
  
  
      location / {
          #limit_req zone=one burst=2 nodelay;
          try_files $uri $uri/ /index.php?$query_string;
          add_header 'Access-Control-Allow-Origin' '*';
      }
  
  }
  </code></pre>
  <p>I already create <code>crt</code> + <code>pem</code> key in CloudFlare and configure in these 2 lines :</p>
  <pre><code>ssl_certificate /etc/nginx/ssl/mybabies.app.crt;
  ssl_certificate_key /etc/nginx/ssl/mybabies.app.key; 
  </code></pre>
  <hr />
  <h1>Edit</h1>
  <p>When I paused it</p>
  <p><a href="https://i.stack.imgur.com/NaZzz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NaZzz.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/Mstyk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mstyk.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/QNCyg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QNCyg.png" alt="enter image description here" /></a></p>
  <p>When I clicked <code>View Certificate</code>, I see</p>
  <p><a href="https://i.stack.imgur.com/vmhAc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vmhAc.png" alt="enter image description here" /></a></p>
  <hr />
  <h1>Updated</h1>
  <p>I created the cert from</p>
  <p><a href="https://i.stack.imgur.com/rT5DY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rT5DY.png" alt="enter image description here" /></a></p>