# X509 certificate signed by unknown authority without sudo

**URL:** <https://forums.suse.com/t/x509-certificate-signed-by-unknown-authority-without-sudo/15043>\
**Category:** SUSE Rancher Prime\
**Created:** [August 13, 2019, 8:29am UTC](https://forums.suse.com/t/x509-certificate-signed-by-unknown-authority-without-sudo/15043 "2019-08-13T08:29:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jian\_Ma](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jian_ma/32/5492_2.png) [@Jian\_Ma](https://forums.suse.com/u/Jian_Ma)\
**Post date:** [August 13, 2019, 8:29am UTC](https://forums.suse.com/t/x509-certificate-signed-by-unknown-authority-without-sudo/15043/1 "2019-08-13T08:29:21Z")

</div>

Hi,I’m using Rancher-V2.2.5(Mac osx)  
1.Copy kubconfig file from Rancher cluster page to ~/.kube/config.  
2.When I run `kubectl version `,returns “Unable to connect to the server: x509: certificate signed by unknown authority”.  
But,When I run `sudo kubectl version`, It works ok.

 ![1](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/f/f67e69a084b04275a07cea47a7e39b2521a2eed6.png)  
When I login with root in the shell,run with command `kubectl version `,still returns “Unable to connect to the server: x509: certificate signed by unknown authority”.  
I’m confused,what’s happend?Pls help me,Tks!
