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

CertFileAndKey doesn't work #151

Open
tailtwo opened this issue Dec 10, 2020 · 4 comments
Open

CertFileAndKey doesn't work #151

tailtwo opened this issue Dec 10, 2020 · 4 comments

Comments

@tailtwo
Copy link

tailtwo commented Dec 10, 2020

Hello,

I'm trying to use LetsEncrypt certificate for my FTP pod. My first idea was to use the CertFileAndKey parameter to use the certificate and key that I mounted into the container. So I mounted this configmap in /etc/pure-ftpd/conf/CertFileAndKey :

  CertFileAndKey: |
    "/etc/ssl/private/pure-ftpd.pem" "/etc/ssl/private/pure-ftpd.key"

But when I launch the pod, it crashes without error :

Log enabled, see /var/log/messages
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
rsyslogd: activation of module imklog failed [v8.1901.0 try https://www.rsyslog.com/e/2145 ]
tail: cannot open '/var/log/pure-ftpd/pureftpd.log' for reading: No such file or directory
Setting default port range to: 40080:40100
Setting default max clients to: 20
Setting default max connections per ip to: 20
Starting Pure-FTPd:
  pure-ftpd  -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -R -P X.X.X.X -d -d -O w3c:/var/log/pure-ftpd/transfer.log --tls=0  -p 40080:40100 -c 20 -C 20

However it seems to work fine when I concatenate the key with the cert, so it looks like CertFileAndKey is not working properly.

@stilliard
Copy link
Owner

Hi @tailtwo

We don't currently support the /etc/pure-ftpd/conf directory, please try the flags instead:
https://github.com/stilliard/docker-pure-ftpd#all-pure-ftpd-flags-available
Hope this helps.

@tailtwo
Copy link
Author

tailtwo commented Dec 10, 2020

Looks like there isn't a flag for what I am trying to achieve.

@stilliard
Copy link
Owner

Ah ok, sorry would like to come back and work on a script to parse the conf folder similar to how debian/ubuntu does normally but for the docker container but not had time to work on this atm.
You could maybe take a look at how they handle that in their script to work around this maybe

@tailtwo
Copy link
Author

tailtwo commented Dec 10, 2020

Thank you, I'll take a look at it. I think this issue can be closed then.

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