From bfba24c66dc8795a8d2e0178b6bd1fed7d4e70e6 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 12 Nov 2022 22:52:08 +0800 Subject: [PATCH] Update cert_request.py --- class/core/cert_request.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/class/core/cert_request.py b/class/core/cert_request.py index 0b1dce8c3..be387b747 100644 --- a/class/core/cert_request.py +++ b/class/core/cert_request.py @@ -1310,13 +1310,9 @@ fullchain.pem 粘贴到证书输入框 return mw.returnJson(False, msg) def revokeOrder(self, index): - print(self.__config['orders'][index]) - print(index) if not index in self.__config['orders']: raise Exception("指定订单不存在!") cert_path = self.__config['orders'][index]['save_path'] - - print(cert_path) if not os.path.exists(cert_path): raise Exception("指定订单没有找到可用的证书!") cert = self.dumpDer(cert_path) @@ -1343,8 +1339,8 @@ fullchain.pem 粘贴到证书输入框 if not args.index: if not args.domains: echoErr("请在--domain参数中指定要申请证书的域名,多个以逗号(,)隔开") - if not args.auth_type in ['http', 'tls', 'dns']: - echoErr("请在--type参数中指定正确的验证类型,支持dns和http") + if not args.auth_type in ['http', 'tls']: + echoErr("请在--type参数中指定正确的验证类型,http") auth_to = '' if args.auth_type in ['http', 'tls']: @@ -1354,7 +1350,7 @@ fullchain.pem 粘贴到证书输入框 echoErr("指定网站根目录不存在,请检查:{}".format(args.path)) auth_to = args.path else: - echoErr("请在--path参数中指定网站根目录!") + echoErr("仅支持文件验证!") exit() domains = args.domains.strip().split(',')