Troubleshooting Connection Issues with Azure Key Vault from On-Premises

0
21
Asked By TechSavvy42 On

I'm trying to access an Azure Key Vault from my on-premises RHEL server using a private endpoint, but I'm running into a roadblock. I've created a bash script that authenticates with a service principal, retrieves a key, and performs some operations, which runs smoothly in Azure Cloud Shell. However, when I execute the same script from my on-prem server, I get a 'Connection reset by peer' error during the login phase. I'm wondering if this issue could be related to certificate or TLS version discrepancies on my server. How can I verify that, and if it is the case, what steps should I take to resolve this? Any help would be greatly appreciated!

5 Answers

Answered By NetworkNerd92 On

Have you tried running an nslookup to see if it resolves the private IP correctly? Just to confirm your server can reach the Azure services.

TechSavvy42 -

Yes, the nslookup resolves correctly. I believe the issue is with our firewall settings; they haven't allowed access to *.login.microsoftonline.net. I'm checking that first before diving deeper.

Answered By TechSavvy42 On

Just a quick update: I've implemented firewall rules, but I'm still facing the same connection error. This might take some more troubleshooting.

Answered By DataDigger88 On

Make sure your on-premises server can navigate through the entire TLS cert chain. I usually run a curl -v command against the DNS names to see if it gets stuck anywhere.

Answered By CloudWhisperer On

Remember to check your Key Vault's private endpoint settings too. Sometimes the Network Security Group (NSG) might allow connections from one source but not another.

Answered By CurlMaster On

Have you tried using curl with the -vv flag from your RHEL box? It can give you more detailed error messages about what's going on.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.