anchore feeds list/sync cause certificate verify failed #57
Description
Hello, I have installed Anchore Scanner on my own centos7 host, all other commands are ok except the command "anchore feeds list/sync". It raised errors as follows:
$ anchore feeds list
| ERROR could not sync feed metadata from service: cannot get list of feeds from service
| Message from server: "connection timed out: increase anchore_auth_conn_timeout higher or try again"
Then I try to debug the code:
headers = {'x-anchore-password': password}
try:
import pdb;pdb.set_trace()
r = requests.get(url, headers=headers, timeout=conn_timeout)
except:
# print "request timed out"
ret['text'] = json.dumps("connection timed out: increase anchore_auth_conn_timeout higher or try again")
return (False, ret)
Then it raise the true error as follows:
$ anchore feeds list
| ERROR could not sync feed metadata from service: cannot get list of feeds from service
| Message from server: server error: HTTPSConnectionPool(host='ancho.re', port=443): Max retries exceeded with url: /v1/account/users/anon@ancho.re (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),))
I use all default config so I can not figure out this problem. so I need team's help, thanks!
I wonder if the user/pwd provided in code (anon@ancho.re/pbiU2RYZ2XrmYQ) is expired?