doujie7497
2017-10-28 16:35
浏览 521
已采纳

如何在Golang Web服务器上设置HTTPS?

I'm reading https://www.kaihag.com/https-and-go/ and bought an SSL certificate from Comodo which they emailed me a .zip file. All of the files I have so far look like this

csr.pem
private-key.pem
website.com.crt
website.com.ca-bundle
website.com.zip

The above website wants me to concatenate 3 .pem files which I don't have. Incidentally what is the reason the .pem files need to concatenated? Using the above files which haven't been modified, how can https be set up on a golang webserver?

图片转代码服务由CSDN问答提供 功能建议

我正在阅读 https://www.kaihag.com/https-and-go/ 并从Comodo购买了SSL证书,他们通过电子邮件将其发送给我 .zip </ code> 文件。 到目前为止,我拥有的所有文件都是这样的</ p>

  csr.pem 
private-key.pem 
website.com.crt 
website.com.ca-bundle 
website  .com.zip 
 </ code> </ pre> 
 
 

以上网站希望我连接3个我没有的<pe> .pem </ code>文件。 顺便说一下, .pem </ code>文件需要串联的原因是什么? 使用上述未修改的文件,如何在golang网络服务器上设置https?</ p> </ div>

4条回答 默认 最新

相关推荐 更多相似问题