passman icon indicating copy to clipboard operation
passman copied to clipboard

Behind reverse proxy

Open hanselsen opened this issue 4 years ago • 2 comments

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.

hanselsen avatar Mar 01 '21 13:03 hanselsen

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

binsky08 avatar Mar 12 '21 23:03 binsky08

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

animalillo avatar Oct 02 '21 17:10 animalillo