Add support for automatic self-signec cert generation#89
Add support for automatic self-signec cert generation#89stilliard merged 1 commit intostilliard:masterfrom lafriks:feat/autocert
Conversation
|
Hey Lauris, I know it'd help a lot saving people from generating these as it's a pain and i never remember the commands, for testing especially. I think it'd be worth setting up a test for this too if possible. |
|
@stilliard test could be added but it would be long one as generating openssl dhparam takes a lot of time |
|
That's true, I'd be ok with adding a minute or so though if you think it can run in that to get coverage for this. |
|
@stilliard I tested and it works as expected. As for tests I could work on that in other PR this weekend |
|
Hey @lafriks |
|
Hi @lafriks , I'm thinking of changing the Here's the test so far: https://github.com/stilliard/docker-pure-ftpd/compare/ftp-tls-test |
|
It does lowers security but not in my current use case as I use this to spin up testing instances. For production this probably would not be recommended. Best options would probably add additional env variable that if set than dhparam is called with if [[ "$TLS_USE_DSAPRAM" == "true" ]]; then
openssl dhparam -dsaparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048
else
openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048
fiso for tests you could set env |
|
Good call, I've added in this flag thanks. |
I'm still testing it but wanted to know what do you think