django-react-boilerplate
django-react-boilerplate copied to clipboard
Dummy certificates key size too small in `init-letsencrypt.sh`
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
thanks @5h44n!