Beego和Https [英] Beego and Https

查看:231
本文介绍了Beego和Https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试设置https,如下所述: https://github.com/astaxie/ beego / issues / 401 并在日志中获取此信息:

Tried to set up https, as described here: https://github.com/astaxie/beego/issues/401 and got this in the logs:

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

I在Windows 10上运行它。有人让Beego使用https吗?我使用了自签名证书,该证书对通用的golang https简单程序非常有效。

I am running it on Windows 10. Any one got Beego working with https? I used self signed certificate, which works fine for generic golang https simple program.

推荐答案

可以在Chrome和名为Chrome的扩展程序中进行测试邮差。通过设置chrome:// flags /#allow-insecure-localhost标志来找出Chrome需要接受的自签名证书。

Was testing in Chrome and a Chrome extension called Postman. Figured out the self signed certificate need to be accepted by Chrome by setting the chrome://flags/#allow-insecure-localhost flag.

另一种解决方案是使用Microsoft边缘。

Another solution was to use Microsoft Edge.

这篇关于Beego和Https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆