django-react-boilerplate icon indicating copy to clipboard operation
django-react-boilerplate copied to clipboard

Dummy certificates key size too small in `init-letsencrypt.sh`

Open 5h44n opened this issue 3 years ago • 1 comments

This repo was a huge help, thanks 🚀 💯

For anyone's reference , I ran into an issue similar to this where the rsa key size argument is too small when generating the dummy certificates to boot up nginx

error:

SSL routines:SSL_CTX_use_certificate:ee key too small

in this command

docker-compose run --rm --entrypoint "\
  openssl req -x509 -nodes -newkey rsa:1024 -days 1\
    -keyout '$path/privkey.pem' \
    -out '$path/fullchain.pem' \
    -subj '/CN=localhost'" certbot

I had to change rsa:1024 to rsa:4096 to get it to work.

Could potentially use the same rsa_key_size variable in the script as well

5h44n avatar Jul 20 '22 19:07 5h44n

thanks @5h44n!

pplonski avatar Jul 21 '22 09:07 pplonski