title: Golang https certificate error: remote error: tls: unknown certificate authority
body: <p>I have made my cert and key using the following</p>
  
  <pre><code>openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
  </code></pre>
  
  <p>And configured it in my Golang code</p>
  
  <pre><code>log.Fatal(http.ListenAndServeTLS(":4201", "cert.pem", "key.pem", router))
  </code></pre>
  
  <p>It worked well when accessing using chrome but it throws the error on the console when accessing using firefox.</p>
  
  <blockquote>
    <p>2018/03/02 16:54:11 http: TLS handshake error from 100.67.56.121:54397: remote error: tls: unknown certificate authority</p>
  </blockquote>
  
  <p>How can I solve the issue?</p>