In order to install a self-signed certificate (DER coded) in an aws lambda layer, I would need to put it in jks file (According to the following example):
But when I search how to convert it, everyone is telling that you don't export jks files, you only import certificates into keystore.
https://stackoverflow.com/a/30353086/23165387
So, it is something that I'm misunderstanding and the documentation are talking about other type of jks?
I tried referencing the der file directly in docker file like the example, but it still throws an SSL exception when i try to execute it.
ENV JAVA_TOOL_OPTIONS="-Djavax.net.ssl.keyStore=/opt/ca_cert.der -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/opt/ca_cert.der -Djavax.net.ssl.trustStorePassword=changeit"