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

Adding Root Certificates to trust the Certificate of a Downstream FHIR Server #6

Closed
chrmey opened this issue Jul 14, 2021 · 3 comments
Assignees

Comments

@chrmey
Copy link

chrmey commented Jul 14, 2021

Is there an environment variable or a path mapping that i can use to add a root Certificate of my CA into the FHIR Gateway? This is needed so the FHIR Gateway trusts the certificate of my downstream FHIR-Server.

@chrmey
Copy link
Author

chrmey commented Jul 14, 2021

Also a possibility for using Basic-Auth would be very useful.

@chrmey
Copy link
Author

chrmey commented Jul 20, 2021

Workaraound: Mouting a custom Truststore as JKS file into the container. Passing it to the JVM with the JAVA_TOOL_OPTIONS:
-Djavax.net.ssl.trustStore=/path/to/certs -Djavax.net.ssl.trustStorePassword=truststorepasswd

However, now the correct certificate path can be build, but the hostname validation fails. It seems possible, that this occurs because there is no SAN given in the certificate. Although the hostname is equal to the CN in the certificate.

@chgl
Copy link
Contributor

chgl commented Jul 20, 2021

That seems possible since the CN field is deprecated nowadays: https://frasertweedale.github.io/blog-redhat/posts/2017-07-11-cn-deprecation.html https://unmitigatedrisk.com/?p=381

@chgl chgl closed this as completed Dec 10, 2021
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