Thank you for your post and I apologize for the delayed response!
Error Message:
"System.Net.Http.HttpRequestException: 'The SSL connection could not be established, see inner exception.'SocketException: An established connection was aborted by the software in your host machine."
From your error message, it seems like the connection is being cancelled or aborted by the software within your host machine, to troubleshoot the issue:
- Capture a network trace using Fiddler to ensure your machine is able to connect to the Key Vault.
- Confirm you don't have any VPN's, SSL certificate issues, or other networking settings that could be affecting your connection to the Key Vault.
- Ensure that your local machine's firewall isn't terminating the SSL connection.
If you're still having issues, can you share the documentation that you're following to set this up?
Additional Links:
- An established connection was aborted by the software in your host machine - This customer had the keep alive set to the default of true but read a post about turning them off.
- Unable to read data from the transport connection: An established connection was aborted by the software in your host machine - This thread has troubleshooting within the comments that might help point you in the right direction.
- SSL Error Accessing Azure Key Vault - This customer's issue was related to their VPN.
I hope this helps!
If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.