I am trying to setup a java application to connect to Hashicorp's vault and authenticate using the TLS backend (using an SSL Certificate)
I am using apache httpcomponents 4.4 as follows:
final CloseableHttpClient httpclient = HttpClients.custom().setSSLContext(mySslContext).build();
final CloseableHttpResponse response = httpclient.execute(myRequest)
where myRequest is a Post call on the url: https://127.0.0.1:8200/v1/auth/cert/login
and mySslContext is built using the keystore file
I have setup vault as follows:
vault server -dev
vault auth-enable cert
vault write auth/cert/certs/default display_name=default policies=default certificate=@C:/dev/keys/vault/vaultPriKey.pem ttl=3600
Yet when i try to execute the request I get:
Unrecognized SSL message, plaintext connection?
Am i missing some form of configuration?