saasitive / django-react-boilerplate

DIY Django + React Boilerplate for starting your SaaS
https://saasitive.com
MIT License
596 stars 89 forks source link

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

Open 5h44n opened 2 years ago

5h44n commented 2 years ago

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

pplonski commented 2 years ago

thanks @5h44n!