title: Failed to find any PEM data in key
body: <p>I am trying to run an HTTPS rest server locally. 
  I followed this help: <a href="https://github.com/denji/golang-tls" rel="noreferrer">Golang TLS</a></p>
  
  <p>It works fine when using self-signed certificates as in the above tutorial. 
  But when I replace these certificates with one I generated from GoDaddy for one of my websites, I get <code>ListenAndServe: tls: failed to find any PEM data in key input</code></p>
  
  <p>These certificates work properly on the apache server but not on my local Go server.</p>
  
  <pre><code>package main
  import (
      "log"
      "net/http"
  )
  
  func HelloServer(w http.ResponseWriter, req *http.Request) {
      w.Header().Set("Content-Type", "text/plain")
      _, _ = w.Write([]byte("This is an example server.\n"))
  }
  
  func main() {
      //https://localhost:443/hello
      http.HandleFunc("/hello", HelloServer)
      err := http.ListenAndServeTLS(":443",
          "../../../../../sslcert/server.crt",
          "../../../../../sslcert/server.key",
          nil)
      if err != nil {
          log.Fatal("ListenAndServe: ", err)
      }
  }
  </code></pre>