How do I set up a SSL certificate for a Flynn application?
Installing TLS certificate in Flynn
677 views Asked by Alvaro Inckot At
2
There are 2 answers
0
On
(In the following examples replace slashbox
with the name of your app)
First, you'll need to add the domain:
flynn -a slashbox route add http www.slashbox.co
Get the ID of the route:
flynn -a slashbox route
The ID of the route looks something like
http/xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxxx
Then, add the TLS certificate and TLS key:
flynn -a slashbox route update http/xxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxxx --tls-cert cert_chain.pem --tls-key key.pem
The cert_chain.pem
file should have the certificate for the domain followed by the intermediate certificate, both in PEM format in the same file. The key.pem
file should have the unencrypted private key matching the certificate in PEM format.
Sources:
The answer added by @titanous is outdated and is no longer valid. The correct usage for flynn is:
So, following the docs, the right answer for this is:
This will print back to you:
updated {ID}
.