Skip to content

Commit

Permalink
fix bug for import cert for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
xxnet committed Jul 18, 2015
1 parent 35fcc79 commit 027114f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ XX-Net
下载链接:
==========
测试版:
https://codeload.github.com/XX-net/XX-Net/zip/2.0.2
https://codeload.github.com/XX-net/XX-Net/zip/2.0.3

稳定版:
https://codeload.github.com/XX-net/XX-Net/zip/1.15.2
Expand Down
2 changes: 1 addition & 1 deletion gae_proxy/local/cert_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def get_exist_ca_sha1():
logging.info("GoAgent CA exist")
return

import_command = 'security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ../../../data/gae_proxy/CA.crt'# % certfile.decode('utf-8')
import_command = 'security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ../../data/gae_proxy/CA.crt'# % certfile.decode('utf-8')
if exist_ca_sha1:
delete_ca_command = 'security delete-certificate -Z %s' % exist_ca_sha1
exec_command = "%s;%s" % (delete_ca_command, import_command)
Expand Down

0 comments on commit 027114f

Please sign in to comment.