Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5h44n opened this issue Jul 20, 2022 · 1 comment
Open

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

5h44n opened this issue Jul 20, 2022 · 1 comment

Comments

@5h44n
Copy link

5h44n commented Jul 20, 2022

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 5h44n changed the title dummy certificates keySize too small in init-letsencrypt.sh Dummy certificates keySize too small in init-letsencrypt.sh Jul 20, 2022
@5h44n 5h44n changed the title Dummy certificates keySize too small in init-letsencrypt.sh Dummy certificates key size too small in init-letsencrypt.sh Jul 21, 2022
@pplonski
Copy link
Contributor

thanks @5h44n!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants