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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
certbot certonly --manual -d ${DOMAIN} --force-renew --key-type rsa --agree-tos --preferred-challenges dns --config-dir . --work-dir . --logs-dir . |
Then paste:
cert.pem
in certificateprivkey.pem
in private keychain.pem
in intermediate certificates