【问题标题】:Beego and HttpsBeego 和 Https
【发布时间】:2017-02-08 23:34:41
【问题描述】:

尝试设置 https,如下所述:https://github.com/astaxie/beego/issues/401 并在日志中得到了这个:

2016/09/28 14:05:34 [I] [asm_amd64.s:2086] https server Running on https://127.0.0.1:10443
2016/09/28 14:05:37 [server.go:2315] [HTTP] http: TLS handshake error from 127.0.0.1:65365: tls: first record does not look like a TLS handshake

我在 Windows 10 上运行它。有人让 Beego 使用 https 吗?我使用了自签名证书,它适用于通用 golang https 简单程序。

【问题讨论】:

    标签: go https beego


    【解决方案1】:

    正在 Chrome 和一个名为 Postman 的 Chrome 扩展程序中进行测试。通过设置 chrome://flags/#allow-insecure-localhost 标志,确定 Chrome 需要接受自签名证书。

    另一个解决方案是使用 Microsoft Edge。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多