title: Google cloud ssl certificate "The SSL certificate could not be parsed"
body: <p>I need help with configuring ssl certificate on google cloud. I've already obtained my ssl certificate (crt file &amp; private key). And I've followed the <a href="https://cloud.google.com/load-balancing/docs/ssl-certificates" rel="nofollow noreferrer">link</a> trying to create a "SSL certificate resource".</p>
  
  <p>I've tried everything but the cmd below just doesn't work:</p>
  
  <pre><code>gcloud compute ssl-certificates create cert --certificate /opt/bitnami/etc/
  smartmeetingroom_tk.crt  --private-key /opt/bitnami/etc/serv.key
  </code></pre>
  
  <p>The error message I got is:
  <a href="https://i.stack.imgur.com/vYAPO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vYAPO.png" alt="enter image description here"></a>
  Could anyone tell me what is wrong with my command (or file)?</p>
  
  <p>Thanks a million!!</p>
  
  <p>update:
  below is the screenshot of error msg when I add "--verbosity debug":
  <a href="https://i.stack.imgur.com/rMaFK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rMaFK.png" alt="enter image description here"></a>
  I obtained ssl certificate from <a href="https://my.gogetssl.com" rel="nofollow noreferrer">this website</a>. </p>
  
  <p>BTW the crt &amp; private key is already pem encoded. Cos they are all readable using text editor and:
  The start&amp;end of crt file looks like:</p>
  
  <p>-----BEGIN CERTIFICATE-----</p>
  
  <p>-----END CERTIFICATE-----</p>
  
  <p>The start&amp;end of private key file looks like:</p>
  
  <p>-----BEGIN PRIVATE KEY-----</p>
  
  <p>-----END PRIVATE KEY-----</p>