Skip to content

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

Description

@5h44n

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions