Problems behind corporative proxy #1831
-
Hello.
However if I erase the prefix and declare as it is showed bellow, it seems to work but I am getting a certificate error.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
You're most likely running into a situation where your corporate proxy serves a TLS certificate that was signed by an internal CA. Dependency-Track (or rather the Java Runtime it uses) has a set of public CAs that are trusted (referred to as "trust store" in Java world). In order to resolve this issue, you must add the certificate of your proxy to the truststore. This can be done as follows: # Get original trust store from API server container
container_id=$(docker run -d --rm dependencytrack/apiserver:4.5.0)
docker exec -i $container_id sh -c '/bin/base64 /opt/java/openjdk/lib/security/cacerts' | base64 -d > cacerts
docker stop $container_id
# Add internal CA certificate (acme.crt) to trust store
# This assumes that you have the Java JDK installed on your system
keytool -keystore ./cacerts -storepass changeit \
-noprompt -trustcacerts -importcert -alias acme.crt \
-file ./acme.crt The modified truststore can then be mounted into the API server container, e.g. like this for Docker Compose: volumes:
- "./cacerts:/opt/java/openjdk/lib/security/cacerts:ro" |
Beta Was this translation helpful? Give feedback.
-
I got the connection to work. Unfortunately, the OIDC redirects me to the the main page, rather than to the page under htpps://main.url/dtrack/
And indeed in the Browser WebDev Console I can see that to idToken is empty |
Beta Was this translation helpful? Give feedback.
-
It works now.
I cannot get the redirect to be Where can I set that context path? I tried to retrace the browser-flow but without success. |
Beta Was this translation helpful? Give feedback.
You're most likely running into a situation where your corporate proxy serves a TLS certificate that was signed by an internal CA.
Dependency-Track (or rather the Java Runtime it uses) has a set of public CAs that are trusted (referred to as "trust store" in Java world).
In order to resolve this issue, you must add the certificate of your proxy to the truststore. This can be done as follows: