title: Use SSL on Laravel Homestead
body: <p>I'm using Laravel Homestead and it is working fine. Now I want to implement HTTPS on one of my sites. </p>
  
  <p>I found that to achieve that you just need to add <code>ssl: true</code> into Homestead.yaml and then run vagrant reload --provision.</p>
  
  <p>I can see it working when I run above command which shows:</p>
  
  <pre><code>==&gt; homestead-7: Running provisioner: shell...
      homestead-7: Running: script: Creating Certificate: laravel-cashier.local
  ==&gt; homestead-7: Running provisioner: shell...
      homestead-7: Running: script: Creating Site: laravel-cashier.local
  </code></pre>
  
  <p>And in <code>/etc/nginx/ssl</code>, I can see these 3 files are created:</p>
  
  <pre><code>-rw-r--r-- 1 root root  683 Jul 19 16:26 laravel-cashier.local.cnf
  -rw-r--r-- 1 root root 1269 Jul 19 16:26 laravel-cashier.local.crt
  -rw-r--r-- 1 root root 1704 Jul 19 16:26 laravel-cashier.local.key
  </code></pre>
  
  <p>But what next?</p>
  
  <p>When I'm trying to run the site with https:</p>
  
  <p><a href="https://i.stack.imgur.com/CVj98.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CVj98.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/U807p.png" rel="noreferrer"><img src="https://i.stack.imgur.com/U807p.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/x9551.png" rel="noreferrer"><img src="https://i.stack.imgur.com/x9551.png" alt="enter image description here"></a></p>
  
  <p>Do I need to do any other steps?</p>
  
  <p>Note: I'm using latest Homestead version 2.1.0.</p>
  
  <p>I have already seen many posts, but I think they are too old and doesn't provide exact steps to achieve the result:</p>
  
  <p><a href="https://laracasts.com/discuss/channels/tips/tip-how-to-enable-ssl-in-homestead-20" rel="noreferrer">https://laracasts.com/discuss/channels/tips/tip-how-to-enable-ssl-in-homestead-20</a></p>
  
  <p><a href="https://laracasts.com/discuss/channels/servers/homestead-ssl" rel="noreferrer">https://laracasts.com/discuss/channels/servers/homestead-ssl</a></p>
  
  <p><a href="https://stackoverflow.com/questions/25558426/laravel-homestead-ssl-set-up">Laravel Homestead - SSL set up</a></p>