本文介绍了在 Flynn 中安装 TLS 证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为 Flynn 应用设置 SSL 证书?
How do I set up a SSL certificate for a Flynn application?
推荐答案
@titanous 添加的答案已过时,不再有效.flynn 的正确用法是:
The answer added by @titanous is outdated and is no longer valid.The correct usage for flynn is:
usage: flynn route
flynn route add http [-s <service>] [-c <tls-cert> -k <tls-key>] [--sticky] [--leader] [--no-leader] [--no-drain-backends] <domain>
flynn route add tcp [-s <service>] [-p <port>] [--leader] [--no-drain-backends]
flynn route update <id> [-s <service>] [-c <tls-cert> -k <tls-key>] [--sticky] [--no-sticky] [--leader] [--no-leader]
flynn route remove <id>
因此,按照文档,正确答案是:
So, following the docs, the right answer for this is:
flynn -a slashbox route update http/{ID} -c slashbox.crt -k slashbox.key
这将打印回给您:更新了{ID}
.
这篇关于在 Flynn 中安装 TLS 证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!