Get a Letsencrypt certificate for Dreamhost with certbot

Published

April 1, 2023

Dreamhost has discontinued offering free Letsecrypt certificated in their shared hosting.

However, they support pasting a manually created certificate, so we can generate one on a different machine with the manual mode of certbot and then deploy it.

The issue that costed me 1 hour today is that certbot generated a ECDSA key by default instead of RSA, so here the script to generate the right key, just run:

export DOMAIN=www.yourdomain.com

and the script:

Then paste: