您尚未登录。

#1 2014-03-19 19:16:10

yhylord
会员
注册时间: 2013-11-16
帖子: 84

GoAgent 不能获取证书

bug汇报:https://bugs.archlinux.org/task/39537?p … ng=goagent
版本是3.15.2,我已经把GoAgent CA添加到浏览器里。

# systemctl status -l goagent
goagent.service - GoAgent Service
   Loaded: loaded (/usr/lib/systemd/system/goagent.service; enabled)
   Active: active (running) since Thu 2014-03-20 01:51:35 CST; 1h 1min ago
 Main PID: 264 (python2)
   CGroup: /system.slice/goagent.service
           └─264 /usr/bin/python2 /usr/share/goagent/local/goagent

Mar 20 02:52:41 localhost python2[264]: method()
Mar 20 02:52:41 localhost python2[264]: File "/usr/share/goagent/local/goagent", line 2182, in do_CONNECT
Mar 20 02:52:41 localhost python2[264]: return self.do_CONNECT_AGENT()
Mar 20 02:52:41 localhost python2[264]: File "/usr/share/goagent/local/goagent", line 2245, in do_CONNECT_AGENT
Mar 20 02:52:41 localhost python2[264]: certfile = CertUtil.get_cert(host)
Mar 20 02:52:41 localhost python2[264]: File "/usr/share/goagent/local/goagent", line 323, in get_cert
Mar 20 02:52:41 localhost python2[264]: return CertUtil._get_cert(commonname, sans)
Mar 20 02:52:41 localhost python2[264]: File "/usr/share/goagent/local/goagent", line 305, in _get_cert
Mar 20 02:52:41 localhost python2[264]: with open(certfile, 'wb') as fp:
Mar 20 02:52:41 localhost python2[264]: IOError: [Errno 13] Permission denied: 'certs/youtube.com.crt'
# ls -Al /usr/share/goagent/local/certs
-rw-r--r-- 1 root root 2973 Mar 13 19:04 .ak.facebook.com.crt
-rw-r--r-- 1 root root 2969 Mar 13 19:04 .cloudfront.net.crt
-rw-r--r-- 1 root root 2961 Mar 13 19:04 .facebook.com.crt
-rw-r--r-- 1 root root 2953 Mar 13 19:04 twitter.com.crt

离线

#2 2014-03-19 21:30:59

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,919
个人网站

Re: GoAgent 不能获取证书

你是不是用 root 身份运行过 goagent?请以 root 身份执行:

rm -r /usr/share/goagent/local/certs
mkdir /usr/share/goagent/local/certs
chown nobody:nobody /usr/share/goagent/local/certs

离线

#3 2014-03-20 20:44:42

yhylord
会员
注册时间: 2013-11-16
帖子: 84

Re: GoAgent 不能获取证书

百合仙子 说:

你是不是用 root 身份运行过 goagent?请以 root 身份执行:

rm -r /usr/share/goagent/local/certs
mkdir /usr/share/goagent/local/certs
chown nobody:nobody /usr/share/goagent/local/certs

真的是这样啊……还报了bug... sad

离线

页脚