Search code examples
ruby-on-railssslpumaflynn

Installing TLS certificate in Flynn


How do I set up a SSL certificate for a Flynn application?


Solution

  • 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
    

    This will print back to you: updated {ID}.