We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello BetterCloud Team,
A big thanks for this cool project.
I am facing a small issue, hence reporting this as a bug.
I am trying to connect to our Vault back end, using certificate, not using tokens.
Hence, as a verification, we use a curl command first.
curl -vv -s -k -X $'PUT' --cacert ./mycert.crt --cert ./mycert.crt --key ./mykey.key https://x509.my-vault.com/v1/auth/cert/login | jq -r .auth.client_token
And this will yield the good token! Very happy.
Hence, just wanting to perform the same with this library:
public static void main( String[] args ) throws Exception { final VaultConfig config = new VaultConfig() .address("https://my-vault.com:443") //nox509 prefix .sslConfig(new SslConfig() .clientPemUTF8("/mycert.crt") .clientKeyPemUTF8("/mykey.key") .build()).build(); final Vault vault = new Vault(config, 1); System.out.println("checkpoint1" + vault.debug().health().getInitialized() + vault.debug().health().getRestResponse().getStatus() + new String(vault.debug().health().getRestResponse().getBody()));; final Map<String, Object> secrets = new HashMap<>(); secrets.put("value", "hello world"); final LogicalResponse writeResponse = vault.logical().write("cubbyhole/test", secrets); System.out.println("checkpoint2 " + writeResponse.getLeaseId() + writeResponse.getData() + writeResponse.getDataObject()); final String value = vault.logical().read("cubbyhole/test").getData().get("value"); System.out.println("checkpoint3 " + value); }
Sadly, this is not working (not able to write or read the secret.
Would it be possible those API have issues?
Please let me know if you believe I am the issue, i.e. I am not using things correctly.
Thank you!
The text was updated successfully, but these errors were encountered:
Any updates on this?
Sorry, something went wrong.
No branches or pull requests
Hello BetterCloud Team,
A big thanks for this cool project.
I am facing a small issue, hence reporting this as a bug.
I am trying to connect to our Vault back end, using certificate, not using tokens.
Hence, as a verification, we use a curl command first.
And this will yield the good token! Very happy.
Hence, just wanting to perform the same with this library:
Sadly, this is not working (not able to write or read the secret.
Would it be possible those API have issues?
Please let me know if you believe I am the issue, i.e. I am not using things correctly.
Thank you!
The text was updated successfully, but these errors were encountered: