<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Guide on Benjamin Italiaander</title><link>https://tlnd.org/genre/guide/</link><description>Recent content in Guide on Benjamin Italiaander</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 29 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tlnd.org/genre/guide/index.xml" rel="self" type="application/rss+xml"/><item><title>Contact</title><link>https://tlnd.org/contact/</link><pubDate>Sun, 29 Nov 2026 00:00:00 +0000</pubDate><guid>https://tlnd.org/contact/</guid><description>&lt;h1 id="-contact"&gt;📬 Contact&lt;/h1&gt;
&lt;p&gt;You can reach me through:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;💼 &lt;strong&gt;&lt;a href="https://www.linkedin.com/in/italiaander" class="external-link" target="_blank" rel="noopener"&gt;LinkedIn&lt;/a&gt;&lt;/strong&gt;: send me a message&lt;/li&gt;
&lt;li&gt;🐙 &lt;strong&gt;&lt;a href="https://github.com/Benjamin-Italiaander" class="external-link" target="_blank" rel="noopener"&gt;GitHub&lt;/a&gt;&lt;/strong&gt; and 🦊 &lt;strong&gt;&lt;a href="https://gitlab.com/italiaander" class="external-link" target="_blank" rel="noopener"&gt;GitLab&lt;/a&gt;&lt;/strong&gt;: for anything about my code and notes, open an issue&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="-something-confidential"&gt;🔐 Something confidential?&lt;/h2&gt;
&lt;p&gt;Send me a message on LinkedIn first. I&amp;rsquo;ll send you my public OpenPGP key and its fingerprint, and we check the fingerprint together through a second channel (in person, by phone or on a video call). Then only I can read what you send.&lt;/p&gt;</description></item><item><title>Public-key cryptography 5 — S/MIME: email encryption with certificates</title><link>https://tlnd.org/math/public_key_cryptography/05_smime/</link><pubDate>Sun, 29 Nov 2026 00:00:00 +0000</pubDate><guid>https://tlnd.org/math/public_key_cryptography/05_smime/</guid><description>&lt;h1 id="-5-smime-email-encryption-with-certificates"&gt;✉️ 5. S/MIME: email encryption with certificates&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://tlnd.org/math/public_key_cryptography/04_tls_wireguard_fido2_signal/"&gt;← 4. TLS, WireGuard, FIDO2 and Signal&lt;/a&gt; · &lt;a href="https://tlnd.org/math/public_key_cryptography/"&gt;Overview&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are two standards for signing and encrypting email: &lt;strong&gt;OpenPGP&lt;/strong&gt; (&lt;a href="https://tlnd.org/math/public_key_cryptography/03_pgp/"&gt;part 3&lt;/a&gt;) and &lt;strong&gt;S/MIME&lt;/strong&gt;. They use the same mathematics. The big difference is the answer to the question every protocol has to answer: &lt;em&gt;whose key is this?&lt;/em&gt; OpenPGP lets people vouch for each other (or you check a fingerprint yourself); S/MIME uses &lt;strong&gt;certificates from a certificate authority&lt;/strong&gt;, exactly like HTTPS (&lt;a href="https://tlnd.org/math/public_key_cryptography/04_tls_wireguard_fido2_signal/"&gt;part 4&lt;/a&gt;). That makes S/MIME the choice of companies, governments and universities: it is built into Outlook, Apple Mail, Thunderbird and most phones, and an organisation can hand out certificates centrally.&lt;/p&gt;</description></item><item><title>Local AI with Ollama</title><link>https://tlnd.org/Linux/ai/</link><pubDate>Sat, 28 Nov 2026 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/ai/</guid><description>&lt;h1 id="-local-ai-with-ollama"&gt;🤖 Local AI with Ollama&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://ollama.com/" class="external-link" target="_blank" rel="noopener"&gt;Ollama&lt;/a&gt; runs large language models (LLMs) on your own computer. Nothing you type leaves your machine, it works offline, and it costs nothing per question. I use it for quick questions and for code.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="1-install"&gt;1. Install&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl -fsSL https://ollama.com/install.sh &lt;span class="p"&gt;|&lt;/span&gt; sh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This installs &lt;code&gt;ollama&lt;/code&gt; and a systemd service that listens on &lt;code&gt;http://localhost:11434&lt;/code&gt;. With an NVIDIA or AMD graphics card it uses the GPU automatically.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl status ollama
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama --version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="2-get-a-model-and-talk-to-it"&gt;2. Get a model and talk to it&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama pull qwen3:8b &lt;span class="c1"&gt;# download a model (about 5 GB)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama run qwen3:8b &lt;span class="c1"&gt;# chat in the terminal; /bye to stop&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama run qwen3:8b &lt;span class="s2"&gt;&amp;#34;Explain what a TOTP code is in two sentences.&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama list &lt;span class="c1"&gt;# models on disk&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama ps &lt;span class="c1"&gt;# models in memory, and whether they run on the GPU&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ollama rm ministral-3:3b &lt;span class="c1"&gt;# remove a model&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="3-which-model-fits"&gt;3. Which model fits?&lt;/h2&gt;
&lt;p&gt;The model has to fit in your &lt;strong&gt;video memory (VRAM)&lt;/strong&gt;, otherwise it runs (much slower) on the CPU. A rough guide for the usual 4-bit models:&lt;/p&gt;</description></item><item><title>Backups with BorgBackup</title><link>https://tlnd.org/Linux/backup/borg_backup/</link><pubDate>Sat, 28 Nov 2026 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/backup/borg_backup/</guid><description>&lt;h1 id="-backups-with-borgbackup"&gt;🗄️ Backups with BorgBackup&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://www.borgbackup.org/" class="external-link" target="_blank" rel="noopener"&gt;BorgBackup&lt;/a&gt; (borg) is, like &lt;a href="https://tlnd.org/Linux/backup/restic_desktop_backups/"&gt;restic&lt;/a&gt;, a backup program that &lt;strong&gt;encrypts&lt;/strong&gt; everything and stores every piece of data only once (&lt;strong&gt;deduplication&lt;/strong&gt;). After the first backup, a new one only adds what changed, so you can keep a snapshot of every day for years without filling the disk.&lt;/p&gt;
&lt;p&gt;I use borg especially for backups to my &lt;strong&gt;own server&lt;/strong&gt; over SSH: borg on the server side makes it fast, and the server can be locked down so that it can only receive backups.&lt;/p&gt;</description></item><item><title>Desktop Backups with restic (and the 3-2-1 Rule)</title><link>https://tlnd.org/Linux/backup/restic_desktop_backups/</link><pubDate>Sat, 28 Nov 2026 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/backup/restic_desktop_backups/</guid><description>&lt;h1 id="-desktop-backups-with-restic"&gt;💾 Desktop backups with restic&lt;/h1&gt;
&lt;p&gt;For servers I use &lt;a href="https://tlnd.org/Linux/backup/tape/bearos-start-point/"&gt;Bareos and tape&lt;/a&gt;. For my own laptop that is far too much: there I use &lt;strong&gt;&lt;a href="https://restic.net/" class="external-link" target="_blank" rel="noopener"&gt;restic&lt;/a&gt;&lt;/strong&gt;. It is one program, it encrypts everything, and it only stores what changed, so a daily backup takes seconds.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="the-3-2-1-rule"&gt;The 3-2-1 rule&lt;/h2&gt;
&lt;p&gt;A backup is only a backup if it survives the disaster:&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;&lt;/th&gt;
 &lt;th&gt;Rule&lt;/th&gt;
 &lt;th&gt;Example&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;three copies of your data&lt;/td&gt;
 &lt;td&gt;the original + two backups&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;on two different media&lt;/td&gt;
 &lt;td&gt;laptop SSD + USB disk&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
 &lt;td&gt;one copy somewhere else&lt;/td&gt;
 &lt;td&gt;a server, a cloud bucket, or a disk at a friend&amp;rsquo;s house&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;And the hidden fourth rule: &lt;strong&gt;test your restores&lt;/strong&gt;. A backup you have never restored is a hope, not a backup.&lt;/p&gt;</description></item><item><title>Harden an SSH Server: sshd, Firewall and fail2ban</title><link>https://tlnd.org/Linux/ssh/ssh_server_hardening/</link><pubDate>Sat, 28 Nov 2026 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/ssh/ssh_server_hardening/</guid><description>&lt;h1 id="-harden-an-ssh-server"&gt;🛡️ Harden an SSH server&lt;/h1&gt;
&lt;p&gt;Every server with port 22 open to the internet gets thousands of login attempts a day. These four steps make them harmless.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Keep your current SSH session open&lt;/strong&gt; while you change these settings, and test with a &lt;strong&gt;second&lt;/strong&gt; session. If something is wrong, you can still fix it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id="1-log-in-with-a-key-first"&gt;1. Log in with a key first&lt;/h2&gt;
&lt;p&gt;Make sure you can log in with an SSH key before you turn passwords off:&lt;/p&gt;</description></item><item><title>YubiKey 9 — Disk encryption (LUKS) and Git signing</title><link>https://tlnd.org/Linux/yubikey/09_luks_and_git_signing/</link><pubDate>Sat, 28 Nov 2026 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/yubikey/09_luks_and_git_signing/</guid><description>&lt;h1 id="9-disk-encryption-luks-and-git-signing"&gt;9. Disk encryption (LUKS) and Git signing&lt;/h1&gt;
&lt;p&gt;Two more things your YubiKey can do with &lt;strong&gt;FIDO2&lt;/strong&gt;, the same function you used for &lt;a href="https://tlnd.org/Linux/yubikey/04_ssh_fido2/"&gt;SSH in chapter 4&lt;/a&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Unlock your encrypted disk&lt;/strong&gt; at boot: insert the key, type the FIDO2 PIN, touch. No long passphrase any more.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sign your Git commits&lt;/strong&gt;, so everyone (and GitHub) can see that a commit really came from you.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Before you start: you need a FIDO2 PIN (&lt;a href="https://tlnd.org/Linux/yubikey/02_first_time_setup/"&gt;chapter 2&lt;/a&gt;), and ideally a &lt;strong&gt;second YubiKey&lt;/strong&gt; as a backup.&lt;/p&gt;</description></item><item><title>YubiKey 1 — Installation (Debian/Ubuntu and Fedora)</title><link>https://tlnd.org/Linux/yubikey/01_installation/</link><pubDate>Wed, 01 Oct 2025 12:30:21 +0100</pubDate><guid>https://tlnd.org/Linux/yubikey/01_installation/</guid><description>&lt;h1 id="1-installation"&gt;1. Installation&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://tlnd.org/Linux/yubikey/"&gt;← Back to overview&lt;/a&gt; · Next: &lt;a href="https://tlnd.org/Linux/yubikey/02_first_time_setup/"&gt;2. First-time setup →&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; install the software, start the smartcard daemon and see your YubiKey with &lt;code&gt;ykman info&lt;/code&gt; and &lt;code&gt;gpg --card-status&lt;/code&gt;.&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Package&lt;/th&gt;
 &lt;th&gt;What it is&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;GnuPG (&lt;code&gt;gnupg2&lt;/code&gt;)&lt;/td&gt;
 &lt;td&gt;The universal crypto engine (OpenPGP)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;scdaemon&lt;/td&gt;
 &lt;td&gt;Smartcard daemon for GnuPG&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;pcsc-lite / pcscd&lt;/td&gt;
 &lt;td&gt;PC/SC smartcard daemon (talks to the YubiKey)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;yubikey-manager&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;ykman&lt;/code&gt;, the YubiKey CLI&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;pcsc-tools&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;pcsc_scan&lt;/code&gt;, handy for debugging&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h2 id="11-debian--ubuntu"&gt;1.1 Debian / Ubuntu&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt install gnupg2 scdaemon pcscd pcsc-tools yubikey-manager yubikey-personalization pipx
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; --now pcscd.socket
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Optional (Ubuntu only) — newer Yubico packages from the official PPA:&lt;/p&gt;</description></item><item><title>YubiKey 2 — First-time setup (the bare minimum)</title><link>https://tlnd.org/Linux/yubikey/02_first_time_setup/</link><pubDate>Wed, 01 Oct 2025 12:30:21 +0100</pubDate><guid>https://tlnd.org/Linux/yubikey/02_first_time_setup/</guid><description>&lt;h1 id="2-first-time-setup--the-bare-minimum"&gt;2. First-Time Setup — The Bare Minimum&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://tlnd.org/Linux/yubikey/01_installation/"&gt;← 1. Installation&lt;/a&gt; · &lt;a href="https://tlnd.org/Linux/yubikey/"&gt;Overview&lt;/a&gt; · Next: &lt;a href="https://tlnd.org/Linux/yubikey/03_totp_oath/"&gt;3. TOTP codes →&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Every YubiKey leaves the factory with &lt;strong&gt;the same, publicly known defaults&lt;/strong&gt;. Until you change them, anybody who holds your key can use it.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;✅ Do this checklist for &lt;strong&gt;every&lt;/strong&gt; YubiKey you own, including the backup key.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;✔&lt;/th&gt;
 &lt;th&gt;Application&lt;/th&gt;
 &lt;th&gt;What to change&lt;/th&gt;
 &lt;th&gt;Default&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;☐&lt;/td&gt;
 &lt;td&gt;FIDO2&lt;/td&gt;
 &lt;td&gt;Set a PIN&lt;/td&gt;
 &lt;td&gt;&lt;em&gt;(none)&lt;/em&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;☐&lt;/td&gt;
 &lt;td&gt;PIV&lt;/td&gt;
 &lt;td&gt;PIN&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;123456&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;☐&lt;/td&gt;
 &lt;td&gt;PIV&lt;/td&gt;
 &lt;td&gt;PUK&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;12345678&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;☐&lt;/td&gt;
 &lt;td&gt;PIV&lt;/td&gt;
 &lt;td&gt;Management key&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;010203040506070801020304050607080102030405060708&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;☐&lt;/td&gt;
 &lt;td&gt;OpenPGP&lt;/td&gt;
 &lt;td&gt;User PIN&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;123456&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;☐&lt;/td&gt;
 &lt;td&gt;OpenPGP&lt;/td&gt;
 &lt;td&gt;Admin PIN&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;12345678&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;☐&lt;/td&gt;
 &lt;td&gt;OATH&lt;/td&gt;
 &lt;td&gt;Password&lt;/td&gt;
 &lt;td&gt;&lt;em&gt;(none)&lt;/em&gt; — see &lt;a href="https://tlnd.org/Linux/yubikey/03_totp_oath/"&gt;chapter 3&lt;/a&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;blockquote&gt;
&lt;p&gt;💾 &lt;strong&gt;Write down your PUK, Admin PIN and management key and store them offline&lt;/strong&gt; (paper, or a QR code in a safe).
I have an instruction for making a QR code in the CLI &lt;a href="https://github.com/Benjamin-Italiaander/My_Notes/blob/main/Linux/cli/qrcode.md" class="external-link" target="_blank" rel="noopener"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>YubiKey 3 — TOTP codes (OATH)</title><link>https://tlnd.org/Linux/yubikey/03_totp_oath/</link><pubDate>Wed, 01 Oct 2025 12:30:21 +0100</pubDate><guid>https://tlnd.org/Linux/yubikey/03_totp_oath/</guid><description>&lt;h1 id="3-totp-codes-oath"&gt;3. TOTP Codes (OATH)&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://tlnd.org/Linux/yubikey/02_first_time_setup/"&gt;← 2. First-time setup&lt;/a&gt; · &lt;a href="https://tlnd.org/Linux/yubikey/"&gt;Overview&lt;/a&gt; · Next: &lt;a href="https://tlnd.org/Linux/yubikey/04_ssh_fido2/"&gt;4. SSH with FIDO2 →&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; store your authenticator codes (GitHub, Google, …) on the YubiKey instead of (or next to) your phone.&lt;/p&gt;
&lt;h3 id="why-copy-an-existing-totp-secret"&gt;Why copy an existing TOTP secret?&lt;/h3&gt;
&lt;p&gt;When a website shows you a QR code, it also shows a text secret (Base32, e.g. &lt;code&gt;JBSWY3DPEHPK3PXP&lt;/code&gt;). If you add &lt;strong&gt;that same secret&lt;/strong&gt; to several YubiKeys (and/or an authenticator app), they all produce the same codes — so you have a backup.&lt;/p&gt;</description></item><item><title>YubiKey 4 — SSH with FIDO2</title><link>https://tlnd.org/Linux/yubikey/04_ssh_fido2/</link><pubDate>Wed, 01 Oct 2025 12:30:21 +0100</pubDate><guid>https://tlnd.org/Linux/yubikey/04_ssh_fido2/</guid><description>&lt;h1 id="4-ssh-with-fido2"&gt;4. SSH with FIDO2&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://tlnd.org/Linux/yubikey/03_totp_oath/"&gt;← 3. TOTP codes&lt;/a&gt; · &lt;a href="https://tlnd.org/Linux/yubikey/"&gt;Overview&lt;/a&gt; · Next: &lt;a href="https://tlnd.org/Linux/yubikey/05_openpgp_gpg_ssh/"&gt;5. OpenPGP →&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; an SSH key whose private part never leaves the YubiKey. This is the &lt;strong&gt;simplest&lt;/strong&gt; secure way to use SSH with a YubiKey. (OpenPGP, chapter 5, is more flexible but more complex.)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Before you start:&lt;/strong&gt; complete &lt;a href="https://tlnd.org/Linux/yubikey/02_first_time_setup/"&gt;chapter 2&lt;/a&gt; — at least the FIDO2 PIN. You should know the difference between a private and a public key.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="41-how-it-works"&gt;4.1 How it works&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;real private key&lt;/strong&gt; is created and stored &lt;strong&gt;inside the YubiKey&lt;/strong&gt; — it can never be extracted or imported.&lt;/li&gt;
&lt;li&gt;A small &lt;strong&gt;key handle&lt;/strong&gt; file is stored in &lt;code&gt;~/.ssh&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;To log in you need the &lt;strong&gt;YubiKey + touch (+ PIN)&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Never share&lt;/th&gt;
 &lt;th&gt;Safe to share&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;~/.ssh/yubikey&lt;/code&gt; (key handle)&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;~/.ssh/yubikey.pub&lt;/code&gt; (public key)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;your YubiKey&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 Disable password logins on your servers (&lt;code&gt;PasswordAuthentication no&lt;/code&gt;) to get the full benefit.&lt;/p&gt;</description></item><item><title>YubiKey 5 — OpenPGP: GPG and SSH</title><link>https://tlnd.org/Linux/yubikey/05_openpgp_gpg_ssh/</link><pubDate>Wed, 01 Oct 2025 12:30:21 +0100</pubDate><guid>https://tlnd.org/Linux/yubikey/05_openpgp_gpg_ssh/</guid><description>&lt;h1 id="5-openpgp--gpg--ssh"&gt;5. OpenPGP — GPG + SSH&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://tlnd.org/Linux/yubikey/04_ssh_fido2/"&gt;← 4. SSH with FIDO2&lt;/a&gt; · &lt;a href="https://tlnd.org/Linux/yubikey/"&gt;Overview&lt;/a&gt; · Next: &lt;a href="https://tlnd.org/Linux/yubikey/06_age_piv/"&gt;6. age encryption →&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a GPG &lt;strong&gt;master key&lt;/strong&gt; that is kept offline,&lt;/li&gt;
&lt;li&gt;three &lt;strong&gt;subkeys&lt;/strong&gt; (Sign, Encrypt, Authenticate) on the YubiKey,&lt;/li&gt;
&lt;li&gt;SSH logins through &lt;code&gt;gpg-agent&lt;/code&gt; with the Authentication subkey,&lt;/li&gt;
&lt;li&gt;multi-hop SSH with &lt;code&gt;ProxyJump&lt;/code&gt; (without agent forwarding).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Before you start:&lt;/strong&gt; &lt;a href="https://tlnd.org/Linux/yubikey/01_installation/"&gt;chapter 1&lt;/a&gt; (incl. Fedora step 5 for the shell settings).&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="51-the-idea-in-one-picture"&gt;5.1 The idea in one picture&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Master key [C] ──► offline backup (USB in a safe) — only for creating/renewing subkeys
 ├─ Subkey [S] Sign ──► YubiKey slot 1
 ├─ Subkey [E] Encrypt ──► YubiKey slot 2
 └─ Subkey [A] Authenticate ──► YubiKey slot 3 ──► used for SSH
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In the commands below, replace &lt;code&gt;&amp;lt;KEYID&amp;gt;&lt;/code&gt; with your key ID or email address.&lt;/p&gt;</description></item><item><title>YubiKey 6 — age encryption (PIV)</title><link>https://tlnd.org/Linux/yubikey/06_age_piv/</link><pubDate>Wed, 01 Oct 2025 12:30:21 +0100</pubDate><guid>https://tlnd.org/Linux/yubikey/06_age_piv/</guid><description>&lt;h1 id="6-age-encryption-piv"&gt;6. age Encryption (PIV)&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://tlnd.org/Linux/yubikey/05_openpgp_gpg_ssh/"&gt;← 5. OpenPGP&lt;/a&gt; · &lt;a href="https://tlnd.org/Linux/yubikey/"&gt;Overview&lt;/a&gt; · Next: &lt;a href="https://tlnd.org/Linux/yubikey/07_linux_login_pam/"&gt;7. Linux login →&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; encrypt files with &lt;a href="https://github.com/FiloSottile/age" class="external-link" target="_blank" rel="noopener"&gt;&lt;code&gt;age&lt;/code&gt;&lt;/a&gt; so that only your YubiKey(s) — or an offline backup key — can decrypt them. A simple alternative to OpenPGP.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="61--post-quantum-note"&gt;6.1 ⚠️ Post-quantum note&lt;/h2&gt;
&lt;p&gt;age with a YubiKey is &lt;strong&gt;not post-quantum (PQ) secure&lt;/strong&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Only software age keys with a PQ algorithm (&lt;code&gt;age1pq1…&lt;/code&gt;) are PQ-resistant.&lt;/li&gt;
&lt;li&gt;You &lt;strong&gt;cannot import&lt;/strong&gt; an existing age identity into a YubiKey — it can only generate its own.&lt;/li&gt;
&lt;li&gt;PQ and non-PQ recipients &lt;strong&gt;cannot be mixed&lt;/strong&gt; in one file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;👉 If you need post-quantum encryption, a YubiKey is currently &lt;strong&gt;not the right tool&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>YubiKey 7 — Linux login with PAM (sudo, desktop, TTY)</title><link>https://tlnd.org/Linux/yubikey/07_linux_login_pam/</link><pubDate>Wed, 01 Oct 2025 12:30:21 +0100</pubDate><guid>https://tlnd.org/Linux/yubikey/07_linux_login_pam/</guid><description>&lt;h1 id="7-linux-login-with-pam-sudo-desktop-tty"&gt;7. Linux Login with PAM (sudo, desktop, TTY)&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://tlnd.org/Linux/yubikey/06_age_piv/"&gt;← 6. age encryption&lt;/a&gt; · &lt;a href="https://tlnd.org/Linux/yubikey/"&gt;Overview&lt;/a&gt; · Next: &lt;a href="https://tlnd.org/Linux/yubikey/08_troubleshooting/"&gt;8. Troubleshooting →&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; require your YubiKey (touch) for &lt;code&gt;sudo&lt;/code&gt;, &lt;code&gt;su&lt;/code&gt;, the desktop login (GDM) and TTY login, using &lt;code&gt;pam_u2f&lt;/code&gt; (FIDO2/U2F).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;🚨 &lt;strong&gt;You can lock yourself out.&lt;/strong&gt; Keep a &lt;strong&gt;root shell open in a second terminal&lt;/strong&gt; (&lt;code&gt;sudo -i&lt;/code&gt;) while you change PAM files, and test before you log out. If something breaks, remove the line you added.&lt;/p&gt;</description></item><item><title>YubiKey on Linux — Get Started the Safe Way</title><link>https://tlnd.org/Linux/yubikey/</link><pubDate>Mon, 01 Sep 2025 12:30:21 +0100</pubDate><guid>https://tlnd.org/Linux/yubikey/</guid><description>&lt;h1 id="-yubikey-on-linux--get-started-the-safe-way"&gt;🔐 YubiKey on Linux — Get Started the Safe Way&lt;/h1&gt;
&lt;p&gt;A practical guide to using a YubiKey from the Linux command line.
Commands are given for &lt;strong&gt;Debian/Ubuntu&lt;/strong&gt; (&lt;code&gt;apt&lt;/code&gt;) and &lt;strong&gt;Fedora&lt;/strong&gt; (&lt;code&gt;dnf&lt;/code&gt;).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hardware tokens can raise your security to a very high level — &lt;strong&gt;but only when they are configured and used correctly.&lt;/strong&gt;
A badly configured token gives you a &lt;em&gt;false sense of security&lt;/em&gt;, not actual protection.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id="-chapters"&gt;📚 Chapters&lt;/h2&gt;
&lt;p&gt;Work through chapters 1 and 2 first. After that, pick the chapters for the functions you actually use.&lt;/p&gt;</description></item><item><title>Kitty Terminal: My Working Config</title><link>https://tlnd.org/Linux/cli/kitty_terminal/</link><pubDate>Mon, 27 Feb 2023 14:12:45 +0100</pubDate><guid>https://tlnd.org/Linux/cli/kitty_terminal/</guid><description>&lt;blockquote&gt;
&lt;p&gt;📦 &lt;em&gt;This page comes from my GitHub repository &lt;a href="https://github.com/Benjamin-Italiaander/kitty_terminal_working_config_example" class="external-link" target="_blank" rel="noopener"&gt;kitty_terminal_working_config_example&lt;/a&gt; and is updated automatically when I change it there.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="-kitty-terminal-my-working-config"&gt;🐱 Kitty Terminal: My Working Config&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://sw.kovidgoyal.net/kitty/" class="external-link" target="_blank" rel="noopener"&gt;kitty&lt;/a&gt; is a fast, GPU-accelerated terminal for Linux and macOS. I switched to it from GNOME Terminal + &lt;a href="https://zellij.dev/" class="external-link" target="_blank" rel="noopener"&gt;Zellij&lt;/a&gt;, because kitty does everything I used a multiplexer for (tabs, splits, layouts) and a lot more: it shows images, makes file names clickable, and has small built-in tools called &lt;strong&gt;kittens&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Create colored alert boxes in Markdown (MD)</title><link>https://tlnd.org/Linux/markdown/create_colored_alertboxes_in_markdown/</link><pubDate>Fri, 09 Sep 2022 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/markdown/create_colored_alertboxes_in_markdown/</guid><description>&lt;p&gt;Alert boxes in pandoc-goodies or easy-pandoc-templates.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;: my &lt;a href="https://tlnd.org/Linux/markdown/addup/"&gt;CSS add-on&lt;/a&gt; has been &lt;a href="https://github.com/ryangrose/easy-pandoc-templates/commit/337d251bdc5c3577ebf8f128e418f6428398fb46" class="external-link" target="_blank" rel="noopener"&gt;committed by Ryan Rose&lt;/a&gt;, so easy-pandoc-templates now supports alert boxes.&lt;/p&gt;
&lt;p&gt;My current favourite is &lt;a href="https://github.com/ryangrose/easy-pandoc-templates" class="external-link" target="_blank" rel="noopener"&gt;easy-pandoc-templates&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I was struggling to make alert boxes in Markdown (MD), so here is how to create them.&lt;/p&gt;
&lt;p&gt;It doesn&amp;rsquo;t feel as easy as plain Markdown, but just copy and paste if you like this style. It&amp;rsquo;s used with &lt;a href="https://github.com/tajmone/pandoc-goodies" class="external-link" target="_blank" rel="noopener"&gt;pandoc-goodies&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="alert-box"&gt;Alert box&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Alert!&lt;/strong&gt; &amp;mdash; Alert box in blue&lt;/p&gt;</description></item><item><title>Connect to a Dell S4048 serial console in Linux</title><link>https://tlnd.org/Linux/RS232/</link><pubDate>Wed, 07 Sep 2022 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/RS232/</guid><description>&lt;h1 id="connect-to-a-serial-console-in-linux"&gt;Connect to a serial console in Linux&lt;/h1&gt;
&lt;p&gt;I needed to connect to my Dell S4048 and Dell Z9100-ON switches over a serial port in Linux.&lt;/p&gt;
&lt;p&gt;I connected my RS232 cable to the Dell switch, but somehow I got weird characters after connecting.&lt;/p&gt;
&lt;p&gt;The specifications on the Dell site said:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;115200 baud (set the Micro-USB console port to 9600 baud).&lt;/li&gt;
&lt;li&gt;No parity.&lt;/li&gt;
&lt;li&gt;8 data bits.&lt;/li&gt;
&lt;li&gt;1 stop bit.&lt;/li&gt;
&lt;li&gt;No flow control.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I tried minicom and cu, without success.
In the end &lt;a href="http://www.columbia.edu/kermit/ck90.html" class="external-link" target="_blank" rel="noopener"&gt;Kermit&lt;/a&gt; did the trick, with this config file &lt;code&gt;~/.kermrc&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>Best practice: generate an SSH key pair</title><link>https://tlnd.org/Linux/ssh/ssh_keygen/</link><pubDate>Wed, 20 Apr 2022 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/ssh/ssh_keygen/</guid><description>&lt;p&gt;&lt;img src="https://tlnd.org/Linux/ssh/ssh-150x150.png" alt="ssh 150x150" title="ssh-150x150.png" loading="lazy" decoding="async"&gt;&lt;/p&gt;
&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;
&lt;p&gt;A short best-practice guide on how to generate an SSH key pair on the Linux command line.&lt;/p&gt;
&lt;p&gt;A public/private key pair is a pair of mathematically related keys used in asymmetric cryptography for authentication, digital signatures or key establishment. As the name indicates, the private key is used by the owner of the key pair, is kept secret and should be protected at all times, while the public key can be published and used by the other party to complete the protocol or to verify the operations performed with the private key.&lt;/p&gt;</description></item><item><title>Install Linux on a Fujitsu Lifebook</title><link>https://tlnd.org/Linux/fedora/Install_Linux_from_USB_on_fujitsu_lifebook/</link><pubDate>Fri, 01 Jan 2021 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/fedora/Install_Linux_from_USB_on_fujitsu_lifebook/</guid><description>&lt;p&gt;I was trying to install Fedora 36 from USB on my Fujitsu Lifebook U7410, but it would not boot from the USB stick:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;set_second_stage() failed: invalid Parameter
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Something has gone seriously wrong: shim_init() failed Invalid Parameter
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can avoid this problem by making the bootable USB stick with the &lt;a href="https://www.ventoy.net/en/index.html" class="external-link" target="_blank" rel="noopener"&gt;Ventoy USB tool&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>How to Set Up Your Own CA with OpenSSL</title><link>https://tlnd.org/Linux/ssl/some-instruction-aboutssl-i-found-online/</link><pubDate>Sun, 03 Jul 2016 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/ssl/some-instruction-aboutssl-i-found-online/</guid><description>&lt;p&gt;I found this useful guide &lt;a href="https://gist.github.com/soarez/9688998" class="external-link" target="_blank" rel="noopener"&gt;here&lt;/a&gt;. Thank you for sharing, &lt;a href="https://uk.linkedin.com/in/soarez" class="external-link" target="_blank" rel="noopener"&gt;Igor Soarez&lt;/a&gt;!&lt;/p&gt;
&lt;h1 id="how-to-set-up-your-own-ca-with-openssl"&gt;How to set up your own CA with OpenSSL&lt;/h1&gt;
&lt;p&gt;For educational reasons I&amp;rsquo;ve decided to create my own CA.
Here is what I learned.&lt;/p&gt;
&lt;h2 id="first-things-first"&gt;First things first&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s get some context first.&lt;/p&gt;
&lt;h2 id="public-key-cryptography"&gt;Public Key Cryptography&lt;/h2&gt;
&lt;p&gt;Public key cryptography, AKA asymmetric cryptography, solves the problem of two entities communicating
securely without ever exchanging a common key, by using two related keys,
one private, one public.&lt;/p&gt;</description></item><item><title>First Tape Commands in Linux</title><link>https://tlnd.org/Linux/backup/tape/first-tape-commands-in-linux/</link><pubDate>Wed, 11 May 2016 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/backup/tape/first-tape-commands-in-linux/</guid><description>&lt;h1 id="manage-tape-autoloaders-drives-and-libraries-from-the-unixlinux-cli"&gt;Manage tape autoloaders, drives and libraries from the Unix/Linux CLI&lt;/h1&gt;
&lt;p&gt;The first step in managing tapes in Linux is using the &lt;code&gt;mt&lt;/code&gt; and &lt;code&gt;mtx&lt;/code&gt; commands.&lt;/p&gt;
&lt;p&gt;Tools used in this article:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;lsscsi (list SCSI devices (or hosts), list NVMe devices)&lt;/li&gt;
&lt;li&gt;mt (control magnetic tape drive operation, from the mt-st package): controls the tape drive, such as tape movement, ejection and drive settings.&lt;/li&gt;
&lt;li&gt;mtx (control SCSI media changer devices): controls tape libraries (moving cartridges from slots to drives, etc.)&lt;/li&gt;
&lt;li&gt;tar (an archiving utility)&lt;/li&gt;
&lt;li&gt;ltfs (Linear Tape File System)&lt;/li&gt;
&lt;li&gt;sg3-utils (The sg3_utils package contains utilities that send SCSI commands to devices)&lt;/li&gt;
&lt;li&gt;dd (convert and copy a file)&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="warning-the-first-time-you-load-an-lto-9-tape-it-starts-a-calibration-that-can-take-up-to-2-hours"&gt;Warning! The first time you load an LTO-9 tape, it starts a calibration that can take up to 2 hours&lt;/h2&gt;
&lt;p&gt;When LTO-9 media is first loaded into an LTO-9 drive, the drive automatically initiates tape calibration, which includes initialization and characterization of the cartridge.&lt;/p&gt;</description></item><item><title>Login Email Notifications with PAM</title><link>https://tlnd.org/Linux/ssh/login_notification/</link><pubDate>Fri, 06 May 2016 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/ssh/login_notification/</guid><description>&lt;h1 id="linux-login-email-notifications-using-pam"&gt;Linux Login Email Notifications using PAM&lt;/h1&gt;
&lt;p&gt;This setup sends an email notification whenever someone logs into the Linux system over SSH or on a local console.&lt;/p&gt;
&lt;p&gt;Useful for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Detecting unexpected access&lt;/li&gt;
&lt;li&gt;Monitoring servers remotely&lt;/li&gt;
&lt;li&gt;Security auditing&lt;/li&gt;
&lt;li&gt;Home lab notifications&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="install-the-required-mail-utility"&gt;Install the Required Mail Utility&lt;/h2&gt;
&lt;p&gt;Install a simple mail client:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt install bsd-mailx
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;h2 id="create-the-login-notification-script"&gt;Create the Login Notification Script&lt;/h2&gt;
&lt;p&gt;Create the script:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nano /usr/local/bin/login-notify.sh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Contents:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;#!/bin/bash
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;## DON&amp;#39;T FORGET TO CHANGE YOUR EMAIL ADDRESS!&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;TO&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;admin@example.com&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;HOST&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;hostname -f 2&amp;gt;/dev/null &lt;span class="o"&gt;||&lt;/span&gt; hostname&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$PAM_TYPE&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; in
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;auth&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DESCRIPTION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Authentication attempt (password, SSH key, MFA or other authentication mechanism)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;account&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DESCRIPTION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Account validation (access rules, expiration checks, login restrictions)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;open_session&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DESCRIPTION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;User session opened successfully (login)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;close_session&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DESCRIPTION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;User session closed (logout or disconnect)&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;password&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DESCRIPTION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Password change operation&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;*&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;DESCRIPTION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Unknown PAM event&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;esac&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;SUBJECT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;PAM Event [&lt;/span&gt;&lt;span class="nv"&gt;$PAM_TYPE&lt;/span&gt;&lt;span class="s2"&gt;] on &lt;/span&gt;&lt;span class="nv"&gt;$HOST&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;MESSAGE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;PAM Event Notification
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Event Type : &lt;/span&gt;&lt;span class="nv"&gt;$PAM_TYPE&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Description: &lt;/span&gt;&lt;span class="nv"&gt;$DESCRIPTION&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Hostname : &lt;/span&gt;&lt;span class="nv"&gt;$HOST&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Date : &lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;date&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;User : &lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PAM_USER&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="p"&gt;/A&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Remote User: &lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PAM_RUSER&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="p"&gt;/A&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Remote Host: &lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PAM_RHOST&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="p"&gt;/A&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;TTY : &lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PAM_TTY&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="p"&gt;/A&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Service : &lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;PAM_SERVICE&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="p"&gt;/A&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;## Process Information
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;PID : &lt;/span&gt;&lt;span class="nv"&gt;$$&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Parent PID : &lt;/span&gt;&lt;span class="nv"&gt;$PPID&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Script User: &lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;id -un&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;Script UID : &lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;id -u&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;## Environment
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;SSH_CLIENT : &lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;SSH_CLIENT&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="p"&gt;/A&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;SSH_CONNECTION : &lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;SSH_CONNECTION&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="p"&gt;/A&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;SSH_TTY : &lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;SSH_TTY&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="nv"&gt;N&lt;/span&gt;&lt;span class="p"&gt;/A&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$MESSAGE&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; mail -s &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$SUBJECT&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$TO&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;h2 id="make-the-script-executable"&gt;Make the Script Executable&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;chmod +x /usr/local/bin/login-notify.sh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;h2 id="enable-notifications-for-ssh-logins"&gt;Enable Notifications for SSH Logins&lt;/h2&gt;
&lt;p&gt;Edit the SSH PAM configuration:&lt;/p&gt;</description></item><item><title>SSL Certificate Signing Request Best Practices</title><link>https://tlnd.org/Linux/ssl/SSL-Certificate-Signing-Request-best-practices/</link><pubDate>Wed, 04 May 2016 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/ssl/SSL-Certificate-Signing-Request-best-practices/</guid><description>&lt;h1 id="certificate-signing-request-best-practices-using-openssl"&gt;Certificate Signing Request Best Practices Using OpenSSL&lt;/h1&gt;
&lt;p&gt;A Certificate Signing Request (CSR) can be generated with OpenSSL. When you create a CSR, you generate two files: a private key (&lt;code&gt;.key&lt;/code&gt; file) and a certificate signing request (&lt;code&gt;.csr&lt;/code&gt; file).&lt;/p&gt;
&lt;p&gt;The best way to generate a CSR is to create a request configuration file that contains all the certificate details. In this case I call the config file &lt;code&gt;request.cnf&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt; req &lt;span class="o"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;default_bits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="m"&gt;4096&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;default_md&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; sha256
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;attributes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; req_attributes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;distinguished_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; req_distinguished_name
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;prompt&lt;/span&gt;		 &lt;span class="o"&gt;=&lt;/span&gt; no
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;req_extensions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; v3_req
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt; req_distinguished_name &lt;span class="o"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;countryName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; NL
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;stateOrProvinceName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; Noord-Holland
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;localityName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; Amsterdam
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;organizationName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; My company Name
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;organizationalUnitName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; IT
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;commonName&lt;/span&gt;		 &lt;span class="o"&gt;=&lt;/span&gt; *.domain.tld
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;emailAddress&lt;/span&gt;		 &lt;span class="o"&gt;=&lt;/span&gt; admin@domain.tld
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;v3_req&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;subjectKeyIdentifier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;hash&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;basicConstraints&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; critical, CA:false
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;keyUsage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; digitalSignature, keyEncipherment
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;extendedKeyUsage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; serverAuth
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;subjectAltName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; @alt_names
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt; req_attributes &lt;span class="o"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt; req_ext &lt;span class="o"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;subjectAltName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; @alt_names
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;alt_names&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;DNS.1 &lt;span class="o"&gt;=&lt;/span&gt; domain.tld
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;DNS.2 &lt;span class="o"&gt;=&lt;/span&gt; *.domain.tld
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After creating this config file, you can generate the key and the CSR. Make sure you never share the &lt;code&gt;.key&lt;/code&gt; file: it is your private key.&lt;/p&gt;</description></item><item><title>Bye Bye Screen, Hello Zellij</title><link>https://tlnd.org/Linux/cli/bye-bye-screen-hello-zellij/</link><pubDate>Mon, 28 Mar 2016 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/cli/bye-bye-screen-hello-zellij/</guid><description>&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;This note is old.&lt;/strong&gt; I don&amp;rsquo;t use Zellij on my desktop any more: I now use the
&lt;a href="https://tlnd.org/Linux/cli/kitty_terminal/"&gt;kitty terminal&lt;/a&gt;, whose tabs, splits and layouts do everything I used
Zellij for. Zellij (or tmux) is still a good choice on a server, when you need sessions
that keep running after you close the terminal or lose your SSH connection.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="zellij-is-a-great-alternative-to-screen"&gt;&lt;a href="https://zellij.dev/" class="external-link" target="_blank" rel="noopener"&gt;Zellij&lt;/a&gt; is a great alternative to screen!&lt;/h1&gt;
&lt;p&gt;I recently came across Zellij, a really nice replacement for terminal multiplexers like tmux and screen. I instantly became a fan!&lt;/p&gt;</description></item><item><title>Bareos: Getting Started</title><link>https://tlnd.org/Linux/backup/tape/bearos-start-point/</link><pubDate>Thu, 28 Jan 2016 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/backup/tape/bearos-start-point/</guid><description>&lt;h1 id="the-basics-of-bareos"&gt;The basics of Bareos&lt;/h1&gt;
&lt;h2 id="main-components-of-bareos"&gt;Main components of Bareos&lt;/h2&gt;
&lt;p&gt;Bareos is made up of the following major components or services:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#bareos-director-service"&gt;Bareos Director Service&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#console-service"&gt;Console Service&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#bareos-file-daemon"&gt;Bareos File Daemon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#bareos-storage-daemon"&gt;Bareos Storage Daemon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#bareos-monitor-service"&gt;Bareos Monitor Service&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="bareos-director-service"&gt;Bareos Director Service&lt;/h3&gt;
&lt;p&gt;The Director is the central control program for all the other daemons. It schedules and supervises all the backup, restore, verify and archive operations. The system administrator uses the Bareos Director to schedule backups and to recover files. The Director runs as a daemon (or service) in the background.&lt;/p&gt;</description></item></channel></rss>