Skip to content

Certificates and encryption

TLS certificates for your servers: checking what a server delivers, creating keys and certificate requests, getting free certificates from Let's Encrypt, and encrypting files for backups and transfers.

Basics: How TLS works, certificate chains, file formats, where certificates live and what to install

Checking certificates

Creating keys and certificates

Let's Encrypt

  • certbot


    Free certificates, renewed automatically.

Encrypting files

  • gpg


    Encrypt, sign and verify.

  • age


    Simple file encryption.

From other chapters

  • ssh-keygen


    SSH keys work like TLS key pairs; age can even use them. Covered in the chapter SSH.

  • sha256sum


    Check downloads and backups with checksums. Covered in the chapter Archives.

  • ansible-vault


    Encrypt passwords inside Ansible projects. Covered in the chapter Ansible.