How do I generate the Let's Encrypt certificate and key on my own device? [More info inside]

(Above screenshot from Raspberry Pi)