Skip to content

Commit

Permalink
优化证书获取
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Jun 15, 2021
1 parent cbaa54a commit b3df416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion v2ray_util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.10.5'
__version__ = '3.10.5.1'

import sys
if "xray" in sys.argv[0]:
Expand Down
2 changes: 2 additions & 0 deletions v2ray_util/util_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ def gen_cert(domain):
os.system("curl https://get.acme.sh | sh")

open_port(80)
if int(os.popen("/root/.acme.sh/acme.sh -v|tr -cd '[0-9]'").read()) >= 300:
os.system("/root/.acme.sh/acme.sh --set-default-ca --server letsencrypt")
get_ssl_cmd = "bash /root/.acme.sh/acme.sh --issue -d " + domain + " --debug --standalone --keylength ec-256"
if ":" in local_ip:
get_ssl_cmd = get_ssl_cmd + " --listen-v6"
Expand Down

0 comments on commit b3df416

Please sign in to comment.