Replies: 4 comments 10 replies
-
This should have been a discussion. TLS_SETUP options have more verbose documentation since a little while back. Writing what simple, true, and later does. Let us know if that helps. |
Beta Was this translation helpful? Give feedback.
-
@primetomas, Thanks for the update. I made this an issue because I think this is more unexpected behavior by ejbca in the container images than a misunderstanding of the documentation. Referencing the container documentation again, it clearly states that setting Note: After rereading the most recent documentation for the container image, I added the environment variable |
Beta Was this translation helpful? Give feedback.
-
There is documentation about setting with nginx proxy manager or caddy for example? Cant find |
Beta Was this translation helpful? Give feedback.
-
I also have a lot of problem with set up ejbca behind reverse proxy, but i found solution. This is my settings. Maybe it will be helpfull for someone in future ejbc docker compose:
reverse-poxy docker-compose
reverse-proxy - default.conf
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a new deployment. Following the instructions and using the latest
keyfactor/ejbca-ce
docker image, I get an error accessing the Admin GUI behind a proxy.I have traefik2 as a reverse proxy which is acting as an HTTP proxy and decrypting HTTPS requests towards my domain. I have configured it to proxy the requests to
pki.domainname
towards the HTTPS endpoint on the ejbca container (TCP 8443). The reason I am configuring it this way is I already have oauth configured on traefik and I would like to keep using this to authenticate users to ejbca. Traefik does not support sending client certificates to services on decrypted connections, nor do I care to implement authentication with client certificate unless I have to. To that end, I have the environment variableTLS_SETUP_ENABLED
set tolater
as stated in the container documentation.I managed to get the reverse proxy working and I can hit the Admin GUI page, but I am presented with an error on the page.
Expected Behavior:
Requests to the Admin GUI through traefik proxy should be allowed and no further authentication needed.
Actual Behavior:
The following message is presented in the browser for the requests to Admin GUI:
Subsequently, I see this in the ejbca container's logs, each time the browser makes a new connection through the proxy for the request to the Admin GUI:
Let me know if the full stacktrace is needed, it's pretty lengthy.
Here is the docker compose file I am using:
I've set this up and torn it down multiple times, even reinitializing the database and persistent directory with no luck. I've also tried setting
TLS_SETUP_ENABLED
tosimple
andfalse
with the same result and error seen in the logs.For this to work, I suspect I may need to override the configuration for the
web.reqcert
property as stated in the documentation here, however this is very unintuitive for users of the docker image (me) and even the documentation for the container image states:If this is the case, why mention the TLS_SETUP_ENABLED option but leave out instructions to get it working? Sorry for the rant and I could really use some help here.
Beta Was this translation helpful? Give feedback.
All reactions