I'm encountering an issue when trying to manage my Elastic Kubernetes Service (EKS) cluster from my Windows workstation using kubectl and Lens. I keep getting an error that says, 'tls: failed to parse certificate from server: x509: certificate contains duplicate extensions.' While it seems that kubectl works fine in CloudShell, my local setup can't parse the server certificate properly, which makes it impossible to administer the cluster from my laptop. Any ideas on how to resolve this?
4 Answers
Why not switch to Mac or Linux? They're much better for development work. Windows is really only useful for office clerks.
Thanks a lot, everyone! I found that disabling Kaspersky on my computer did the trick! It works perfectly now! ❤️❤️
To troubleshoot this, it would be helpful to take a look at your certificate dump. Two potential issues could be causing this: 1) The certificate from the AWS-managed EKS API server may be malformed. 2) A proxy server might be reencrypting your traffic incorrectly. If it's the first issue, you'll need to reach out to AWS Support. For the second, contacting your corporate IT to secure your network connections would be a good move.
If you're the cluster admin, you might want to check your aws eks commands to ensure kubectl is configured correctly.

Make sure to remove Kaspersky entirely. You really don't want any untrustworthy software messing with your traffic!