@certd/plugin-lib 1.39.9 → 1.39.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.39.11](https://github.com/certd/certd/compare/v1.39.10...v1.39.11) (2026-04-26)
7
+
8
+ ### Performance Improvements
9
+
10
+ * 支持部署到nginx-proxy-manager ([2e6e9ed](https://github.com/certd/certd/commit/2e6e9ed9255bcf178edb0eb00d93a7f13c214430))
11
+
12
+ ## [1.39.10](https://github.com/certd/certd/compare/v1.39.9...v1.39.10) (2026-04-11)
13
+
14
+ ### Performance Improvements
15
+
16
+ * 1panel支持先上传证书再选择证书 ([7a9eec8](https://github.com/certd/certd/commit/7a9eec88e8eddf40dba055c072b5b2b0f67c1407))
17
+
6
18
  ## [1.39.9](https://github.com/certd/certd/compare/v1.39.8...v1.39.9) (2026-04-05)
7
19
 
8
20
  **Note:** Version bump only for package @certd/plugin-lib
@@ -1,5 +1,8 @@
1
1
  import { CertificateInfo } from "@certd/acme-client";
2
2
  import { ILogger } from "@certd/basic";
3
+ export interface ICertInfoGetter {
4
+ getByPipelineId: (pipelineId: number) => Promise<CertInfo>;
5
+ }
3
6
  export type CertInfo = {
4
7
  crt: string;
5
8
  key: string;
@@ -84,7 +84,13 @@ export class CertReader {
84
84
  };
85
85
  }
86
86
  static readCertDetail(crt) {
87
- const detail = crypto.readCertificateInfo(crt.toString());
87
+ let detail;
88
+ try {
89
+ detail = crypto.readCertificateInfo(crt.toString());
90
+ }
91
+ catch (e) {
92
+ throw new Error("证书解析失败:" + e.message + "(请确定证书格式,是否与私钥搞反?)");
93
+ }
88
94
  const effective = detail.notBefore;
89
95
  const expires = detail.notAfter;
90
96
  const fingerprints = CertReader.getFingerprintX509(crt);
@@ -22,4 +22,8 @@ export declare function createRemoteSelectInputDefine(opts?: {
22
22
  component?: any;
23
23
  value?: any;
24
24
  pageSize?: number;
25
+ uploadCert?: {
26
+ title?: string;
27
+ columns?: Record<string, any>;
28
+ };
25
29
  }): any;
@@ -49,6 +49,7 @@ export function createRemoteSelectInputDefine(opts) {
49
49
  multi,
50
50
  pageSize: opts?.pageSize,
51
51
  watches: [certDomainsInputKey, accessIdInputKey, ...watches],
52
+ uploadCert: opts?.uploadCert,
52
53
  ...opts.component,
53
54
  },
54
55
  value: opts.value,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@certd/plugin-lib",
3
3
  "private": false,
4
- "version": "1.39.9",
4
+ "version": "1.39.11",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -22,10 +22,10 @@
22
22
  "@alicloud/pop-core": "^1.7.10",
23
23
  "@alicloud/tea-util": "^1.4.11",
24
24
  "@aws-sdk/client-s3": "^3.964.0",
25
- "@certd/acme-client": "^1.39.9",
26
- "@certd/basic": "^1.39.9",
27
- "@certd/pipeline": "^1.39.9",
28
- "@certd/plus-core": "^1.39.9",
25
+ "@certd/acme-client": "^1.39.11",
26
+ "@certd/basic": "^1.39.11",
27
+ "@certd/pipeline": "^1.39.11",
28
+ "@certd/plus-core": "^1.39.11",
29
29
  "@kubernetes/client-node": "0.21.0",
30
30
  "ali-oss": "^6.22.0",
31
31
  "basic-ftp": "^5.0.5",
@@ -57,5 +57,5 @@
57
57
  "tslib": "^2.8.1",
58
58
  "typescript": "^5.4.2"
59
59
  },
60
- "gitHead": "1c634a702af9298d25542acc270d68f71d9b1049"
60
+ "gitHead": "ec466dc818eace59825d8ae2ebbc9fc75a94a6b0"
61
61
  }