From 6be75913324e2828d9016eb307ff2d0abbbb2191 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sun, 30 Nov 2025 01:30:47 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=94=AF=E6=8C=81=E8=AF=81=E4=B9=A6?= =?UTF-8?q?=E9=A2=81=E5=8F=91=E6=9C=BA=E6=9E=84=20LiteSSL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/certd/certd/issues/590 --- packages/core/acme-client/src/index.js | 6 +++++- .../plugin-cert/src/plugin/cert-plugin/index.ts | 12 +++++++++++- packages/ui/certd-client/src/views/sys/plugin/api.ts | 1 + .../src/views/sys/plugin/config-common.vue | 10 ++++++++++ 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/packages/core/acme-client/src/index.js b/packages/core/acme-client/src/index.js index e901b4dbd..2e74af0cd 100644 --- a/packages/core/acme-client/src/index.js +++ b/packages/core/acme-client/src/index.js @@ -32,7 +32,11 @@ export const directory = { staging: 'https://acme.ssl.com/sslcom-dv-rsa', production: 'https://acme.ssl.com/sslcom-dv-rsa', ec: 'https://acme.ssl.com/sslcom-dv-ecc', - } + }, + litessl: { + staging: 'https://acme.litessl.com/acme/v2/directory', + production: 'https://acme.litessl.com/acme/v2/directory', + }, }; export function getDirectoryUrl(opts) { diff --git a/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts b/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts index 53263187b..506776403 100644 --- a/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts +++ b/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts @@ -136,6 +136,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin { { value: "letsencrypt", label: "Let's Encrypt(免费,新手推荐)", icon: "simple-icons:letsencrypt" }, { value: "google", label: "Google(免费)", icon: "flat-color-icons:google" }, { value: "zerossl", label: "ZeroSSL(免费)", icon: "emojione:digit-zero" }, + { value: "litessl", label: "litessl(免费)", icon: "roentgen:free" }, { value: "sslcom", label: "SSL.com(仅主域名和www免费)", icon: "la:expeditedssl" }, { value: "letsencrypt_staging", label: "Let's Encrypt测试环境(IP证书)", icon: "simple-icons:letsencrypt" }, ], @@ -250,6 +251,13 @@ export class CertApplyPlugin extends CertApplyBasePlugin { }) sslcomCommonEabAccessId!: number; + @TaskInput({ + title: "litessl公共EAB授权", + isSys: true, + show: false, + }) + litesslCommonEabAccessId!: number; + @TaskInput({ title: "EAB授权", component: { @@ -262,13 +270,15 @@ export class CertApplyPlugin extends CertApplyBasePlugin { "需要提供EAB授权" + "\nZeroSSL:请前往[zerossl开发者中心](https://app.zerossl.com/developer),生成 'EAB Credentials'" + "\nGoogle:请查看[google获取eab帮助文档](https://certd.docmirror.cn/guide/use/google/),用过一次后会绑定邮箱,后续复用EAB要用同一个邮箱" + - "\nSSL.com:[SSL.com账号页面](https://secure.ssl.com/account),然后点击api credentials链接,然后点击编辑按钮,查看Secret key和HMAC key", + "\nSSL.com:[SSL.com账号页面](https://secure.ssl.com/account),然后点击api credentials链接,然后点击编辑按钮,查看Secret key和HMAC key" + + "\nlitessl:[litesslEAB页面](https://freessl.cn/automation/eab-manager),然后点击新增EAB", mergeScript: ` return { show: ctx.compute(({form})=>{ return (form.sslProvider === 'zerossl' && !form.zerosslCommonEabAccessId) || (form.sslProvider === 'google' && !form.googleCommonEabAccessId) || (form.sslProvider === 'sslcom' && !form.sslcomCommonEabAccessId) + || (form.sslProvider === 'litessl' && !form.litesslCommonEabAccessId) }) } `, diff --git a/packages/ui/certd-client/src/views/sys/plugin/api.ts b/packages/ui/certd-client/src/views/sys/plugin/api.ts index f51155dbc..e7e2e46e3 100644 --- a/packages/ui/certd-client/src/views/sys/plugin/api.ts +++ b/packages/ui/certd-client/src/views/sys/plugin/api.ts @@ -93,6 +93,7 @@ export type PluginConfigBean = { export type CertApplyPluginSysInput = { googleCommonEabAccessId?: number; zerosslCommonEabAccessId?: number; + litesslCommonEabAccessId?: number; }; export type PluginSysSetting = { sysSetting: { diff --git a/packages/ui/certd-client/src/views/sys/plugin/config-common.vue b/packages/ui/certd-client/src/views/sys/plugin/config-common.vue index 4fb115451..b8653ae4e 100644 --- a/packages/ui/certd-client/src/views/sys/plugin/config-common.vue +++ b/packages/ui/certd-client/src/views/sys/plugin/config-common.vue @@ -26,6 +26,16 @@ + + +
+
设置公共litessl EAB授权给用户使用,避免用户自己获取litessl EAB授权
+
+ litessl EAB授权管理 +
+
+
+ 保存