我用Go-Swagger生成了一个Golang服务器。我将方案设置为https(并且仅设置为https)。当我启动服务器时,会收到一个TLS错误。
the required flags `--tls-certificate` and `--tls-key` were not specified
很明显,我没有正确设置我的TLS标志,但我真的不知道如何在Go-with-Go-Swagger中做到这一点。
有没有人有任何经验设置与高傲的TLS,因为我找不到任何好的链接?
谢谢您。
https://github.com/go-swagger/go-swagger/tree/master/examples/todo-list#run-full-server
./todo-list-server --tls-certificate mycert1.crt --tls-key mycert1.key