title: SSL on Nginx throws error (SSL: error:0908F066:PEM routines:get_header_and_data:bad end line)
body: <p>I generated my SSL from SSLforFree/ZeroSSL, and according to the steps for installation listed on their website, <a href="https://zerossl.com/help/installation/nginx/" rel="noreferrer">https://zerossl.com/help/installation/nginx/</a></p>
  <ol>
  <li>Downloaded the SSL Files</li>
  <li>Moved them to the Server</li>
  <li>Merged the certificate.crt &amp; ca_bundle.crt with (<code>cat certificate.crt ca_bundle.crt &gt;&gt; certificate.crt</code>)</li>
  <li>Added following lines in the hosts file of nginx:<br />
  <code>ssl    on;</code><br />
  <code>ssl_certificate    /etc/ssl/certificate.crt;</code><br />
  <code>ssl_certificate_key    /etc/ssl/private.key;</code></li>
  <li>Restarted Nginx Server with (<code>sudo service nginx restart</code>)</li>
  <li>Error received, and checked the error details by (<code>journalctl -xe</code>)</li>
  <li>Error was:<br />
  <code>nginx: [emerg] PEM_read_bio_X509_AUX</code><br />
  <code>(SSL: error:0908F066:PEM routines:get_header_and_data:bad end line)</code></li>
  </ol>