Beego and Https

寵の児 提交于 2019-12-13 08:46:21

问题


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 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.


回答1:


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.

Another solution was to use Microsoft Edge.



来源:https://stackoverflow.com/questions/39790681/beego-and-https

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!