How do I fix my PEM block in ssl certificate?
<p>Using golang and gin for an SSL webserver. I made my csr and key files. But I get:</p>

<pre><code>crypto/tls: failed to find "CERTIFICATE" PEM block in certificate input
after skipping PEM blocks of the following types: [CERTIFICATE REQUEST]
</code></pre>

<p>Any idea where to go from here? The line that reads the file is:</p>

<p><a href="https://github.com/gin-gonic/gin/blob/develop/gin.go#L230" rel="nofollow">https://github.com/gin-gonic/gin/blob/develop/gin.go#L230</a></p>

<p>I made my files with:</p>

<pre><code>openssl genrsa -des3 -out &lt;private key file name&gt;.key 2048

openssl req -new -key &lt;private key file name&gt;.key -out &lt;csr file name&gt;.csr 
</code></pre>