@certd/plugin-cert 1.24.3 → 1.25.1
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 +21 -0
- package/dist/access/eab-access.d.ts +4 -4
- package/dist/access/eab-access.js +48 -48
- package/dist/access/index.d.ts +1 -1
- package/dist/access/index.js +1 -1
- package/dist/dns-provider/api.d.ts +27 -27
- package/dist/dns-provider/api.js +1 -1
- package/dist/dns-provider/base.d.ts +8 -8
- package/dist/dns-provider/base.js +6 -6
- package/dist/dns-provider/decorator.d.ts +3 -3
- package/dist/dns-provider/decorator.js +25 -25
- package/dist/dns-provider/index.d.ts +4 -4
- package/dist/dns-provider/index.js +4 -4
- package/dist/dns-provider/registry.d.ts +2 -2
- package/dist/dns-provider/registry.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/plugin/cert-plugin/acme.d.ts +66 -65
- package/dist/plugin/cert-plugin/acme.js +280 -270
- package/dist/plugin/cert-plugin/base.d.ts +46 -46
- package/dist/plugin/cert-plugin/base.js +281 -284
- package/dist/plugin/cert-plugin/cert-reader.d.ts +34 -31
- package/dist/plugin/cert-plugin/cert-reader.js +112 -89
- package/dist/plugin/cert-plugin/convert.d.ts +21 -21
- package/dist/plugin/cert-plugin/convert.js +70 -70
- package/dist/plugin/cert-plugin/index.d.ts +18 -18
- package/dist/plugin/cert-plugin/index.js +208 -206
- package/dist/plugin/cert-plugin/lego/dns.d.ts +1 -1
- package/dist/plugin/cert-plugin/lego/dns.js +1 -1
- package/dist/plugin/cert-plugin/lego/index.d.ts +17 -17
- package/dist/plugin/cert-plugin/lego/index.js +172 -171
- package/dist/plugin/index.d.ts +2 -2
- package/dist/plugin/index.js +2 -2
- package/package.json +4 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/bundle.js +0 -1
- package/dist/d/access/eab-access.d.ts +0 -4
- package/dist/d/access/index.d.ts +0 -1
- package/dist/d/dns-provider/api.d.ts +0 -27
- package/dist/d/dns-provider/base.d.ts +0 -8
- package/dist/d/dns-provider/decorator.d.ts +0 -3
- package/dist/d/dns-provider/index.d.ts +0 -4
- package/dist/d/dns-provider/registry.d.ts +0 -2
- package/dist/d/index.d.ts +0 -3
- package/dist/d/plugin/cert-plugin/acme.d.ts +0 -52
- package/dist/d/plugin/cert-plugin/cert-reader.d.ts +0 -16
- package/dist/d/plugin/cert-plugin/index.d.ts +0 -51
- package/dist/d/plugin/index.d.ts +0 -1
- package/dist/plugin/cert-plugin/lego.d.ts +0 -16
- package/dist/plugin/cert-plugin/lego.js +0 -153
- package/dist/plugin-cert.mjs +0 -11786
- package/dist/plugin-cert.umd.js +0 -28
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { AbstractTaskPlugin, HttpClient, IContext, Step } from "@certd/pipeline";
|
|
2
|
-
import type { CertInfo } from "./acme.js";
|
|
3
|
-
import { CertReader } from "./cert-reader.js";
|
|
4
|
-
export { CertReader };
|
|
5
|
-
export type { CertInfo };
|
|
6
|
-
export declare abstract class CertApplyBasePlugin extends AbstractTaskPlugin {
|
|
7
|
-
domains: string[];
|
|
8
|
-
email: string;
|
|
9
|
-
pfxPassword: string;
|
|
10
|
-
renewDays: number;
|
|
11
|
-
forceUpdate: string;
|
|
12
|
-
successNotify: boolean;
|
|
13
|
-
csrInfo: string;
|
|
14
|
-
userContext: IContext;
|
|
15
|
-
http: HttpClient;
|
|
16
|
-
lastStatus: Step;
|
|
17
|
-
cert?: CertInfo;
|
|
18
|
-
onInstance(): Promise<void>;
|
|
19
|
-
abstract onInit(): Promise<void>;
|
|
20
|
-
abstract doCertApply(): Promise<any>;
|
|
21
|
-
execute(): Promise<void>;
|
|
22
|
-
output(certReader: CertReader, isNew: boolean): Promise<void>;
|
|
23
|
-
zipCert(cert: CertInfo, filename: string): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* 是否更新证书
|
|
26
|
-
*/
|
|
27
|
-
condition(): Promise<CertReader>;
|
|
28
|
-
formatCert(pem: string): string;
|
|
29
|
-
formatCerts(cert: {
|
|
30
|
-
crt: string;
|
|
31
|
-
key: string;
|
|
32
|
-
csr: string;
|
|
33
|
-
}): CertInfo;
|
|
34
|
-
readLastCert(): Promise<CertReader | undefined>;
|
|
35
|
-
/**
|
|
36
|
-
* 检查是否过期,默认提前20天
|
|
37
|
-
* @param expires
|
|
38
|
-
* @param maxDays
|
|
39
|
-
* @returns {boolean}
|
|
40
|
-
*/
|
|
41
|
-
isWillExpire(expires: number, maxDays?: number): {
|
|
42
|
-
isWillExpire: boolean;
|
|
43
|
-
leftDays: number;
|
|
44
|
-
};
|
|
45
|
-
private sendSuccessEmail;
|
|
46
|
-
}
|
|
1
|
+
import { AbstractTaskPlugin, HttpClient, IContext, Step } from "@certd/pipeline";
|
|
2
|
+
import type { CertInfo } from "./acme.js";
|
|
3
|
+
import { CertReader } from "./cert-reader.js";
|
|
4
|
+
export { CertReader };
|
|
5
|
+
export type { CertInfo };
|
|
6
|
+
export declare abstract class CertApplyBasePlugin extends AbstractTaskPlugin {
|
|
7
|
+
domains: string[];
|
|
8
|
+
email: string;
|
|
9
|
+
pfxPassword: string;
|
|
10
|
+
renewDays: number;
|
|
11
|
+
forceUpdate: string;
|
|
12
|
+
successNotify: boolean;
|
|
13
|
+
csrInfo: string;
|
|
14
|
+
userContext: IContext;
|
|
15
|
+
http: HttpClient;
|
|
16
|
+
lastStatus: Step;
|
|
17
|
+
cert?: CertInfo;
|
|
18
|
+
onInstance(): Promise<void>;
|
|
19
|
+
abstract onInit(): Promise<void>;
|
|
20
|
+
abstract doCertApply(): Promise<any>;
|
|
21
|
+
execute(): Promise<void>;
|
|
22
|
+
output(certReader: CertReader, isNew: boolean): Promise<void>;
|
|
23
|
+
zipCert(cert: CertInfo, filename: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* 是否更新证书
|
|
26
|
+
*/
|
|
27
|
+
condition(): Promise<CertReader>;
|
|
28
|
+
formatCert(pem: string): string;
|
|
29
|
+
formatCerts(cert: {
|
|
30
|
+
crt: string;
|
|
31
|
+
key: string;
|
|
32
|
+
csr: string;
|
|
33
|
+
}): CertInfo;
|
|
34
|
+
readLastCert(): Promise<CertReader | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* 检查是否过期,默认提前20天
|
|
37
|
+
* @param expires
|
|
38
|
+
* @param maxDays
|
|
39
|
+
* @returns {boolean}
|
|
40
|
+
*/
|
|
41
|
+
isWillExpire(expires: number, maxDays?: number): {
|
|
42
|
+
isWillExpire: boolean;
|
|
43
|
+
leftDays: number;
|
|
44
|
+
};
|
|
45
|
+
private sendSuccessEmail;
|
|
46
|
+
}
|