Replies: 1 comment 5 replies
-
There are no explicit requirements. AWS-CRT-Java packages Aws-lc on Linux and doesn't need OpenSSL to work. AWS-CRT-Java doesn't use the Java trust store. See https://github.com/awslabs/aws-crt-java?tab=readme-ov-file#tls-behavior. Something like
will not work. You will need to add the cert to the OS trust store with something like |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to use the aws-crt-client in my Java application. However, while it works locally, I can't make it work in some container, depending on the base image used. What are the requirements in term of packages/libraries to have a compliant docker image?
With
ghcr.io/bell-sw/liberica-runtime-container:jre-23-cds-glibc
as base image it works fine. With the slim versionghcr.io/bell-sw/liberica-runtime-container:jre-23-cds-slim-glibc
it does not.I have tried to tune the slim version to include openssl which I though was the only dependency but that's only a guess. Sorry in advance if my question is a bit naive :).
Here is the Dockerfile I have used to try to fix the issue.
With this container I always ends up with the following error when trying to inialialize the TLS connection:
id=0x7fc87c001d00: negotiation failed with error Certificate is untrusted (Error encountered in /codebuild/output/src1861706884/src/aws-crt-java/crt/s2n/tls/s2n_x509_validator.c:724)
While with the non-slim image, I don't have any issue.
Beta Was this translation helpful? Give feedback.
All reactions