How to get fly.io ssl certificate private key?

Is there a way to get the fly.io generated certificate private key from inside an app?

My use case is to use the fly.io certificate for STARTLS in an SMTP server

Hi Tommaso, we don’t make the TLS private keys available to access. You could use something like lets encrypt to provision certificates for the SMTP server. Cli tools like lego or certbot can help automate the creation and renewal processes.

I see two ways of getting the certificate and the key inside an app.

  1. use fly certs create hostname
  2. use fly ssh console and then use certbot

Which one do you recommend?

There is some documentation on using custom domains on fly. But it does not cover how to use ssl certificate and keys.

Can you please help with above?

Hi abeeshake, what are you trying to do?

Hey,

I was trying to run typesense via ssl. I was able to manage it with the default ssl provided by Fly.io.

Thanks for the help

From How To to Questions / Help

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.