linuxserver / docker-letsencrypt

DEPRECATED: Please use linuxserver/swag instead
GNU General Public License v3.0
722 stars 172 forks source link

Is it possible to create a 2048 bit sized key instead of a 4096 bit sized key? #473

Closed tonyskulk closed 4 years ago

tonyskulk commented 4 years ago

I am using the newest linuxserver/letsencrypt image and everything worked fine generating my certificates. But now I need the private key + cert to be of size 2048 instead of 4096, because an integration of an auth-provider only supports 2048 bit sized keys. Is there an easy way to set it to 2048 for generating a new certificate?

Thank you

aptalca commented 4 years ago

It's hardcoded here: https://github.com/linuxserver/docker-letsencrypt/blob/master/root/etc/cont-init.d/50-config#L254 One option is to map in a new init file called 49-config, which does a sed on that line in 50-config to change it to 2048