Open debae opened 3 years ago
/cc @patriot1burke
So, will this work?
quarkus.native.additional-build-args=-J-Djavax.net.ssl.trustStore=/tmp/mycerts,-J-Djavax.net.ssl.trustStorePassword=changeit
FYI, the command line thing used to work I believe, and we just didn't update the docs. This is just a documentation issue?
Indeed it's just a documentation issue. Only the additional-build-args in the application.properties is sufficient. No need to add extra parameters in the bootstrap file.
Describe the bug There is an inconsistency between the documentation of https://quarkus.io/guides/amazon-lambda and https://quarkus.io/guides/native-and-ssl.
According to the amazon-lambda documentation to bootstrap file should be adapter like this : `
!/usr/bin/env bash
./runner -Djava.library.path=./ -Djavax.net.ssl.trustStore=./cacerts ` However the documentation about native-and-ssl states :
As a consequence, system properties such as javax.net.ssl.trustStore do not have an effect at run time, so when the defaults need to be changed, these system properties must be provided at image build time. The easiest way to do so is by setting quarkus.native.additional-build-args. For example:
quarkus.native.additional-build-args=-J-Djavax.net.ssl.trustStore=/tmp/mycerts,-J-Djavax.net.ssl.trustStorePassword=changeit
Actual behavior Getting the following log message when starting the lambda function :
Setting the 'javax.net.ssl.trustStore' system property will not have any effect at runtime. Make sure to set this property at build time (for example by setting 'quarkus.native.additional-build-args=-J-Djavax.net.ssl.trustStore=someValue').
To Reproduce Steps to reproduce the behavior:
Environment (please complete the following information):
uname -a
orver
: Darwin APRXJGH6D5D5F9 18.7.0 Darwin Kernel Version 18.7.0: Mon Apr 27 20:09:39 PDT 2020; root:xnu-4903.278.35~1/RELEASE_X86_64 x86_64java -version
:mvnw --version
orgradlew --version
): Gradle 6.0.1