Skip to content
New issue

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

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

Already on GitHub? # to your account

Behind reverse proxy #679

Open
hanselsen opened this issue Mar 1, 2021 · 2 comments
Open

Behind reverse proxy #679

hanselsen opened this issue Mar 1, 2021 · 2 comments

Comments

@hanselsen
Copy link

hanselsen commented Mar 1, 2021

Bug report

This command does not run passman with SSL disabled.

docker run -p 8080:80 brantje/passman

The documentation states that if the certificates are not present, it disables SSL. But it complains about the SSLCertificateFile.

My passman is behind a reverse-proxy which handles the SSL and requests will be forwarded without SSL.

Steps to reproduce

  1. run docker run -p 8080:80 brantje/passman

Expected behaviour

To run the docker container without SSL enabled.

Actual behaviour

I get the error:

AH00526: Syntax error on line 32 of /etc/apache2/sites-enabled/default-ssl.conf:
SSLCertificateFile: file '/etc/ssl/private/cert.pem' does not exist or is empty
Action 'configtest' failed.
The Apache error log may have more information.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@binsky08
Copy link
Collaborator

as hotfix you could generate an own certificate to get it work

e.g. with

openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem

@hanselsen If you are interested, I have my own passman development docker container based on a newer image and software: https://hub.docker.com/r/binsky/passman-dev

@animalillo
Copy link
Collaborator

Also, if i remember well, brantje/passman image is pretty outdated, we don't currently maintain an official docker image

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

No branches or pull requests

3 participants