代码之家  ›  专栏  ›  技术社区  ›  mornindew

开始炫耀TLS配置

  •  2
  • mornindew  · 技术社区  · 7 年前

    我用Go-Swagger生成了一个Golang服务器。我将方案设置为https(并且仅设置为https)。当我启动服务器时,会收到一个TLS错误。

    the required flags `--tls-certificate` and `--tls-key` were not specified
    

    很明显,我没有正确设置我的TLS标志,但我真的不知道如何在Go-with-Go-Swagger中做到这一点。

    有没有人有任何经验设置与高傲的TLS,因为我找不到任何好的链接?

    谢谢您。

    1 回复  |  直到 7 年前
        1
  •  0
  •   Casual Jim    7 年前

    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

    推荐文章