Closed sdandey closed 3 years ago
Hi @sdandey,
Can you provide the version of the key vault spring boot starter in your project?
I need that to do further investigation.
@neuqlz I'm using 2.2.0 version. I'm trying to find a way to set the proxy for spirng-boot-start apps. Not sure how to do it.
I can set the proxy for a http client using azure-java-sdk approach. But, not sure how to set this up for spring-boot application.
HttpClient httpClient = new OkHttpAsyncHttpClientBuilder() .proxy(new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("<proxy-host>", 8080)) .setCredentials(<username>, <password>)) .build();
Hi: @sdandey
Could you help provide the minimal samples for me to reproduce the exceptions?
@neuqlz I'm running the sample project https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-samples/azure-keyvault-secrets-spring-boot-sample behind a corporate proxy with username/password.
After downloading the sample project I performed the following.
I got the certification exception after that. exception trace is attached on the original issue
Hi @sdandey , could you try new released 2.3.1 which added support for proxy?
Closing this issue. Because it's not active for a long time. If anyone have similar issue, please create issue in new repo: https://github.com/Azure/azure-sdk-for-java/issues
Environment
Spring boot starter:
OS Type: Windows
Java version:
Summary
Running the azure key-vault sample project behind a https_proxy is giving SSLHandshake exception. I even downloaded the certficate by using the azure.keyvault.uri=https://.vault.azure.net and added to the CACerts file
Command to add the certificate
keytool -import -noprompt -trustcacerts -alias azure-2 -file C:\Certs\azure.pem -keystore %JAVA_HOME%/jre/lib/security/cacerts -storepass <password>
Exception Details
Steps to Reproduce
Run jar file using below command