Thirumal
Thirumal

Reputation: 9626

How to generate Let's encrypt certificate with key type RSA/ECDSA using certbot?

Let's Encrypt Certbot default key type is changed to ECDSA with the latest version 2.0.0. How to specify the key type to generate RSA or ECDSA?

Upvotes: 8

Views: 19776

Answers (1)

Thirumal
Thirumal

Reputation: 9626

Add key type parameter --key-type with desired value rsa/ecdsa. The below command is to generate rsa certificate with docker:

docker run -it -v /Users/thirumal/certificate:/etc/letsencrypt certbot/certbot certonly 
--manual --preferred-challenges dns --key-type rsa --email [email protected] 
--server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d '*.example.com'

I have a more complete guide to generating free TLS/SSL certificates using Let's Encrypt published on my GitHub page.

Upvotes: 16

Related Questions