Replies: 1 comment
-
Hi @mnapoleon , Long story short, you have some optionsUsing the self-signed certificateThe Connecting using HTTPS section links to the key store from this repository. It is inside the executable jar file of the container, so it would be probably harder to obtain from there. Regarding the trust configurationAssuming that you are using Java, this Gradle configuration is adding the necessary system properties to use the downloaded key store as trust store: https://github.com/nagyesta/lowkey-vault-example/blob/main/java-sdk/build.gradle#L58-L60 As a side-effect, the built-in CAs will not be trusted, because the key store contains only the self-signed certificate. To be able to use the default CAs and the self-signed cert as well, you can consider importing the self-signed certificate into your default trust store. Caution Importing a publicly available self-signed certificate into your default trust store may introduce security risks. You should prefer to use at least an application specific copy of the key store to reduce the risk. These steps might be helpful in case you are not that familiar with keytool: https://github.com/nagyesta/lowkey-vault/wiki/Importing-or-exporting-the-Lowkey-Vault-Self%E2%80%90Signed-certificate Using your own certificateYou can use your own certificate as well. This might be more secure. Please read this page to see how you can provide your certificate using a volume and add the necessary configuration to use it: https://github.com/nagyesta/lowkey-vault/wiki/Example:-Using-a-custom-certificate-with-Lowkey-Vault
Please let me know how it went! Thank you! |
Beta Was this translation helpful? Give feedback.
-
The docs here (https://github.com/nagyesta/lowkey-vault/wiki/Example:-How-can-you-use-Lowkey-Vault-in-your-tests#3-connecting-using-https) mentioned shipping with a self-signed cert that needing to trust that cert.
Where is this cert located (I'm running lowkey-vault from docker) and how do I go about trusting it on my local Mac laptop so a app I have that is attempting to connect doesn't complain about invalid remote cert.
Beta Was this translation helpful? Give feedback.
All reactions