douliao7354 2016-05-05 21:09 采纳率: 0%
浏览 294

如何在ssl证书中修复我的PEM块?

Using golang and gin for an SSL webserver. I made my csr and key files. But I get:

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

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

https://github.com/gin-gonic/gin/blob/develop/gin.go#L230

I made my files with:

openssl genrsa -des3 -out <private key file name>.key 2048

openssl req -new -key <private key file name>.key -out <csr file name>.csr 
  • 写回答

1条回答 默认 最新

  • dou29106 2016-05-05 21:30
    关注

    I was confusing .csr file vs a .crt file.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?