Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

pkgs.ansible
pkgs.ansible-navigator

# Needed for renewal of TLS certificates
pkgs.certbot
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, Mato

];

languages.python = {
Expand Down
12 changes: 7 additions & 5 deletions docs/deployment/tls-certs.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ The process is manual but would be awesome to
We are using multi-domain wildcard certificates for the following domains:

- `*.packit.dev`
- `*.stream.packit.dev`
- `*.fedora-source-git.packit.dev`
- `*.stg.packit.dev`
- `*.stg.stream.packit.dev`
- `*.stg.fedora-source-git.packit.dev`

In case the procedure bellow does not work,
[previously used http challenge](https://github.com/packit/deployment/blob/008f5eaad69a620c54784f1fc19c7c775af9ec7d/README.md#obtaining-a-lets-encrypt-cert-using-certbot)
Expand Down Expand Up @@ -52,11 +48,17 @@ Check if you have access to packit.dev domain in

Install certbot locally: `dnf install certbot`.

:::note

Or use the combo of nixpkg + devenv.sh.

:::

## Run certbot to obtain the challenges

Run certbot:

$ certbot certonly --config-dir ~/.certbot --work-dir ~/.certbot --logs-dir ~/.certbot --manual --preferred-challenges dns --email [email protected] -d prod.packit.dev -d stg.packit.dev -d dashboard.packit.dev -d dashboard.stg.packit.dev -d workers.packit.dev -d workers.stg.packit.dev -d prod.stream.packit.dev -d stg.stream.packit.dev -d prod.fedora-source-git.packit.dev -d stg.fedora-source-git.packit.dev
$ certbot certonly --config-dir ~/.certbot --work-dir ~/.certbot --logs-dir ~/.certbot --manual --preferred-challenges dns --email [email protected] -d prod.packit.dev -d stg.packit.dev -d dashboard.packit.dev -d dashboard.stg.packit.dev -d workers.packit.dev -d workers.stg.packit.dev

You will be asked to set TXT record for every domain requested:

Expand Down