Skip to content

Automatic LetsEncrypt support #709

@kixelated

Description

@kixelated

One of the biggest hurdles to running moq-relay is getting a certificate. We could simplify the setup process by using a Acme library to automatically provision and rotate TLS certificates.

LetsEncrypt has an API that performs a HTTP/TLS challenge to prove that you own a given domain name. moq-relay already requires a public IP address and listening on UDP, optionally listening on TCP too. We could leverage that to perform the challenge in-process without an external certbot process. I would use instant-acme.

Bonus points for saving the certificate to disk and only performing the challenge if it's missing or about to expire. This will avoid making LetsEncrypt a startup blocker and potentially avoid being rate limited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    rustPull requests that update Rust code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions