How To Install dehydrated on Fedora 34

dehydrated is A client for signing certificates with an ACME server

Introduction

In this tutorial we learn how to install dehydrated on Fedora 34.

What is dehydrated

This is a client for signing certificates with an ACME-server (currently only provided by Let’s Encrypt) implemented as a relatively simple bash- script. Dehydrated supports both ACME v1 and the new ACME v2 including support for wildcard certificates! Current features - Signing of a list of domains (including wildcard domains!) - Signing of a custom CSR (either standalone or completely automated using hooks!) - Renewal if a certificate is about to expire or defined set of domains changed - Certificate revocation

We can use yum or dnf to install dehydrated on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install dehydrated.

Install dehydrated on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install dehydrated using dnf by running the following command:

sudo dnf -y install dehydrated

Install dehydrated on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install dehydrated using yum by running the following command:

sudo yum -y install dehydrated

How To Uninstall dehydrated on Fedora 34

To uninstall only the dehydrated package we can use the following command:

sudo dnf remove dehydrated

dehydrated Package Contents on Fedora 34

/etc/cron.d/dehydrated
/etc/dehydrated
/etc/dehydrated/accounts
/etc/dehydrated/archive
/etc/dehydrated/certs
/etc/dehydrated/conf.d
/etc/dehydrated/conf.d/local.sh
/etc/dehydrated/config
/etc/dehydrated/domains.txt
/etc/dehydrated/hook.sh
/run/dehydrated
/usr/bin/dehydrated
/usr/lib/tmpfiles.d/dehydrated.conf
/usr/share/doc/dehydrated
/usr/share/doc/dehydrated/README.md
/usr/share/doc/dehydrated/acme-v1.md
/usr/share/doc/dehydrated/dns-verification.md
/usr/share/doc/dehydrated/domains_txt.md
/usr/share/doc/dehydrated/ecc.md
/usr/share/doc/dehydrated/examples
/usr/share/doc/dehydrated/examples/config
/usr/share/doc/dehydrated/examples/domains.txt
/usr/share/doc/dehydrated/examples/hook.sh
/usr/share/doc/dehydrated/hook_chain.md
/usr/share/doc/dehydrated/import-from-official-client.md
/usr/share/doc/dehydrated/logo.jpg
/usr/share/doc/dehydrated/per-certificate-config.md
/usr/share/doc/dehydrated/staging.md
/usr/share/doc/dehydrated/tls-alpn.md
/usr/share/doc/dehydrated/troubleshooting.md
/usr/share/doc/dehydrated/wellknown.md
/usr/share/licenses/dehydrated
/usr/share/licenses/dehydrated/LICENSE
/usr/share/man/man1/dehydrated.1.gz
/etc/dehydrated
/etc/dehydrated/accounts
/etc/dehydrated/archive
/etc/dehydrated/certs
/etc/dehydrated/conf.d
/etc/dehydrated/conf.d/local.sh
/etc/dehydrated/config
/etc/dehydrated/domains.txt
/etc/dehydrated/hook.d
/etc/dehydrated/hook.sh
/run/dehydrated
/usr/bin/dehydrated
/usr/lib/systemd/system-preset/50-dehydrated.preset
/usr/lib/systemd/system/dehydrated.service
/usr/lib/systemd/system/dehydrated.timer
/usr/lib/tmpfiles.d/dehydrated.conf
/usr/libexec/dehydrated-cron
/usr/share/doc/dehydrated
/usr/share/doc/dehydrated/CHANGELOG
/usr/share/doc/dehydrated/README.md
/usr/share/doc/dehydrated/acme-v1.md
/usr/share/doc/dehydrated/dns-verification.md
/usr/share/doc/dehydrated/domains_txt.md
/usr/share/doc/dehydrated/ecc.md
/usr/share/doc/dehydrated/examples
/usr/share/doc/dehydrated/examples/config
/usr/share/doc/dehydrated/examples/domains.txt
/usr/share/doc/dehydrated/examples/hook.sh
/usr/share/doc/dehydrated/hook_chain.md
/usr/share/doc/dehydrated/logo.jpg
/usr/share/doc/dehydrated/per-certificate-config.md
/usr/share/doc/dehydrated/staging.md
/usr/share/doc/dehydrated/tls-alpn.md
/usr/share/doc/dehydrated/troubleshooting.md
/usr/share/doc/dehydrated/wellknown.md
/usr/share/licenses/dehydrated
/usr/share/licenses/dehydrated/LICENSE
/usr/share/man/man1/dehydrated.1.gz

References

Summary

In this tutorial we learn how to install dehydrated on Fedora 34 using yum and dnf.