Am hoping to use localstack to simulate elasticsearch/kinesis/dynamo. Am running into troubles with my elastic code wanting HTTPS endpoints.
Testing via java 11/IntelliJ
In all cases am hitting this error:
Caused by: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid
certification path to requested target
I've tried:
- Starting localstack with the USE_SSL environment variable set. curl commands (EG "curl -k https://localhost:port") for elastic work but java does not.
- Using localstack annotations ("@RunWith(LocalstackDockerTestRunner.class)" and passing in "USE_SSL" as a param - no go
- Telling Java to ignore "bad" certs via
System.setProperty(SDKGlobalConfiguration.DISABLE_CERT_CHECKING_SYSTEM_PROPERTY, "true");
- no go - Passing cmdline param
-Dcom.amazonaws.sdk.disableCertChecking
- no go
I feel like what Im looking for is doable.. just can't seem to find the right combination of settings.