@certd/plugin-cert 1.25.5 → 1.25.7
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 +10 -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 +26 -26
- 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 -66
- package/dist/plugin/cert-plugin/acme.js +280 -280
- package/dist/plugin/cert-plugin/base.d.ts +46 -46
- package/dist/plugin/cert-plugin/base.js +281 -281
- package/dist/plugin/cert-plugin/cert-reader.d.ts +34 -34
- package/dist/plugin/cert-plugin/cert-reader.js +112 -112
- package/dist/plugin/cert-plugin/convert.d.ts +21 -21
- package/dist/plugin/cert-plugin/convert.js +71 -71
- package/dist/plugin/cert-plugin/index.d.ts +18 -18
- package/dist/plugin/cert-plugin/index.js +211 -208
- 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 -172
- package/dist/plugin/index.d.ts +2 -2
- package/dist/plugin/index.js +2 -2
- package/package.json +6 -6
- package/stats.html +6177 -0
- package/test/user.secret.js +7 -0
- package/test/user.secret.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.25.7](https://github.com/certd/certd/compare/v1.25.6...v1.25.7) (2024-09-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @certd/plugin-cert
|
|
9
|
+
|
|
10
|
+
## [1.25.6](https://github.com/certd/certd/compare/v1.25.5...v1.25.6) (2024-09-29)
|
|
11
|
+
|
|
12
|
+
### Performance Improvements
|
|
13
|
+
|
|
14
|
+
* 部署支持1Panel ([d047234](https://github.com/certd/certd/commit/d047234d98d31504f2e5a472b66e1b75806af26e))
|
|
15
|
+
|
|
6
16
|
## [1.25.5](https://github.com/certd/certd/compare/v1.25.4...v1.25.5) (2024-09-26)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @certd/plugin-cert
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class EabAccess {
|
|
2
|
-
kid: string;
|
|
3
|
-
hmacKey: string;
|
|
4
|
-
}
|
|
1
|
+
export declare class EabAccess {
|
|
2
|
+
kid: string;
|
|
3
|
+
hmacKey: string;
|
|
4
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { IsAccess, AccessInput } from "@certd/pipeline";
|
|
11
|
-
let EabAccess = class EabAccess {
|
|
12
|
-
kid = "";
|
|
13
|
-
hmacKey = "";
|
|
14
|
-
};
|
|
15
|
-
__decorate([
|
|
16
|
-
AccessInput({
|
|
17
|
-
title: "KID",
|
|
18
|
-
component: {
|
|
19
|
-
placeholder: "kid",
|
|
20
|
-
},
|
|
21
|
-
helper: "EAB KID",
|
|
22
|
-
required: true,
|
|
23
|
-
encrypt: true,
|
|
24
|
-
}),
|
|
25
|
-
__metadata("design:type", Object)
|
|
26
|
-
], EabAccess.prototype, "kid", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
AccessInput({
|
|
29
|
-
title: "HMACKey",
|
|
30
|
-
component: {
|
|
31
|
-
placeholder: "HMAC Key",
|
|
32
|
-
},
|
|
33
|
-
helper: "EAB HMAC Key",
|
|
34
|
-
required: true,
|
|
35
|
-
encrypt: true,
|
|
36
|
-
}),
|
|
37
|
-
__metadata("design:type", Object)
|
|
38
|
-
], EabAccess.prototype, "hmacKey", void 0);
|
|
39
|
-
EabAccess = __decorate([
|
|
40
|
-
IsAccess({
|
|
41
|
-
name: "eab",
|
|
42
|
-
title: "EAB授权",
|
|
43
|
-
desc: "ZeroSSL证书申请需要EAB授权",
|
|
44
|
-
})
|
|
45
|
-
], EabAccess);
|
|
46
|
-
export { EabAccess };
|
|
47
|
-
new EabAccess();
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { IsAccess, AccessInput } from "@certd/pipeline";
|
|
11
|
+
let EabAccess = class EabAccess {
|
|
12
|
+
kid = "";
|
|
13
|
+
hmacKey = "";
|
|
14
|
+
};
|
|
15
|
+
__decorate([
|
|
16
|
+
AccessInput({
|
|
17
|
+
title: "KID",
|
|
18
|
+
component: {
|
|
19
|
+
placeholder: "kid",
|
|
20
|
+
},
|
|
21
|
+
helper: "EAB KID",
|
|
22
|
+
required: true,
|
|
23
|
+
encrypt: true,
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], EabAccess.prototype, "kid", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
AccessInput({
|
|
29
|
+
title: "HMACKey",
|
|
30
|
+
component: {
|
|
31
|
+
placeholder: "HMAC Key",
|
|
32
|
+
},
|
|
33
|
+
helper: "EAB HMAC Key",
|
|
34
|
+
required: true,
|
|
35
|
+
encrypt: true,
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], EabAccess.prototype, "hmacKey", void 0);
|
|
39
|
+
EabAccess = __decorate([
|
|
40
|
+
IsAccess({
|
|
41
|
+
name: "eab",
|
|
42
|
+
title: "EAB授权",
|
|
43
|
+
desc: "ZeroSSL证书申请需要EAB授权",
|
|
44
|
+
})
|
|
45
|
+
], EabAccess);
|
|
46
|
+
export { EabAccess };
|
|
47
|
+
new EabAccess();
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWFiLWFjY2Vzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hY2Nlc3MvZWFiLWFjY2Vzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLFdBQVcsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBT2pELElBQU0sU0FBUyxHQUFmLE1BQU0sU0FBUztJQVVwQixHQUFHLEdBQUcsRUFBRSxDQUFDO0lBVVQsT0FBTyxHQUFHLEVBQUUsQ0FBQztDQUNkLENBQUE7QUFYQztJQVRDLFdBQVcsQ0FBQztRQUNYLEtBQUssRUFBRSxLQUFLO1FBQ1osU0FBUyxFQUFFO1lBQ1QsV0FBVyxFQUFFLEtBQUs7U0FDbkI7UUFDRCxNQUFNLEVBQUUsU0FBUztRQUNqQixRQUFRLEVBQUUsSUFBSTtRQUNkLE9BQU8sRUFBRSxJQUFJO0tBQ2QsQ0FBQzs7c0NBQ087QUFVVDtJQVRDLFdBQVcsQ0FBQztRQUNYLEtBQUssRUFBRSxTQUFTO1FBQ2hCLFNBQVMsRUFBRTtZQUNULFdBQVcsRUFBRSxVQUFVO1NBQ3hCO1FBQ0QsTUFBTSxFQUFFLGNBQWM7UUFDdEIsUUFBUSxFQUFFLElBQUk7UUFDZCxPQUFPLEVBQUUsSUFBSTtLQUNkLENBQUM7OzBDQUNXO0FBcEJGLFNBQVM7SUFMckIsUUFBUSxDQUFDO1FBQ1IsSUFBSSxFQUFFLEtBQUs7UUFDWCxLQUFLLEVBQUUsT0FBTztRQUNkLElBQUksRUFBRSxvQkFBb0I7S0FDM0IsQ0FBQztHQUNXLFNBQVMsQ0FxQnJCOztBQUVELElBQUksU0FBUyxFQUFFLENBQUMifQ==
|
package/dist/access/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./eab-access.js";
|
|
1
|
+
export * from "./eab-access.js";
|
package/dist/access/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./eab-access.js";
|
|
1
|
+
export * from "./eab-access.js";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWNjZXNzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUJBQWlCLENBQUMifQ==
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { HttpClient, IAccess, ILogger, Registrable } from "@certd/pipeline";
|
|
2
|
-
export type DnsProviderDefine = Registrable & {
|
|
3
|
-
accessType: string;
|
|
4
|
-
autowire?: {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export type CreateRecordOptions = {
|
|
9
|
-
fullRecord: string;
|
|
10
|
-
type: string;
|
|
11
|
-
value: any;
|
|
12
|
-
domain: string;
|
|
13
|
-
};
|
|
14
|
-
export type RemoveRecordOptions<T> = CreateRecordOptions & {
|
|
15
|
-
record: T;
|
|
16
|
-
};
|
|
17
|
-
export type DnsProviderContext = {
|
|
18
|
-
access: IAccess;
|
|
19
|
-
logger: ILogger;
|
|
20
|
-
http: HttpClient;
|
|
21
|
-
};
|
|
22
|
-
export interface IDnsProvider<T = any> {
|
|
23
|
-
onInstance(): Promise<void>;
|
|
24
|
-
createRecord(options: CreateRecordOptions): Promise<T>;
|
|
25
|
-
removeRecord(options: RemoveRecordOptions<T>): Promise<void>;
|
|
26
|
-
setCtx(ctx: DnsProviderContext): void;
|
|
27
|
-
}
|
|
1
|
+
import { HttpClient, IAccess, ILogger, Registrable } from "@certd/pipeline";
|
|
2
|
+
export type DnsProviderDefine = Registrable & {
|
|
3
|
+
accessType: string;
|
|
4
|
+
autowire?: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export type CreateRecordOptions = {
|
|
9
|
+
fullRecord: string;
|
|
10
|
+
type: string;
|
|
11
|
+
value: any;
|
|
12
|
+
domain: string;
|
|
13
|
+
};
|
|
14
|
+
export type RemoveRecordOptions<T> = CreateRecordOptions & {
|
|
15
|
+
record: T;
|
|
16
|
+
};
|
|
17
|
+
export type DnsProviderContext = {
|
|
18
|
+
access: IAccess;
|
|
19
|
+
logger: ILogger;
|
|
20
|
+
http: HttpClient;
|
|
21
|
+
};
|
|
22
|
+
export interface IDnsProvider<T = any> {
|
|
23
|
+
onInstance(): Promise<void>;
|
|
24
|
+
createRecord(options: CreateRecordOptions): Promise<T>;
|
|
25
|
+
removeRecord(options: RemoveRecordOptions<T>): Promise<void>;
|
|
26
|
+
setCtx(ctx: DnsProviderContext): void;
|
|
27
|
+
}
|
package/dist/dns-provider/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Rucy1wcm92aWRlci9hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CreateRecordOptions, DnsProviderContext, IDnsProvider, RemoveRecordOptions } from "./api.js";
|
|
2
|
-
export declare abstract class AbstractDnsProvider<T = any> implements IDnsProvider<T> {
|
|
3
|
-
ctx: DnsProviderContext;
|
|
4
|
-
setCtx(ctx: DnsProviderContext): void;
|
|
5
|
-
abstract createRecord(options: CreateRecordOptions): Promise<T>;
|
|
6
|
-
abstract onInstance(): Promise<void>;
|
|
7
|
-
abstract removeRecord(options: RemoveRecordOptions<T>): Promise<void>;
|
|
8
|
-
}
|
|
1
|
+
import { CreateRecordOptions, DnsProviderContext, IDnsProvider, RemoveRecordOptions } from "./api.js";
|
|
2
|
+
export declare abstract class AbstractDnsProvider<T = any> implements IDnsProvider<T> {
|
|
3
|
+
ctx: DnsProviderContext;
|
|
4
|
+
setCtx(ctx: DnsProviderContext): void;
|
|
5
|
+
abstract createRecord(options: CreateRecordOptions): Promise<T>;
|
|
6
|
+
abstract onInstance(): Promise<void>;
|
|
7
|
+
abstract removeRecord(options: RemoveRecordOptions<T>): Promise<void>;
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export class AbstractDnsProvider {
|
|
2
|
-
ctx;
|
|
3
|
-
setCtx(ctx) {
|
|
4
|
-
this.ctx = ctx;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
export class AbstractDnsProvider {
|
|
2
|
+
ctx;
|
|
3
|
+
setCtx(ctx) {
|
|
4
|
+
this.ctx = ctx;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kbnMtcHJvdmlkZXIvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQWdCLG1CQUFtQjtJQUN2QyxHQUFHLENBQXNCO0lBRXpCLE1BQU0sQ0FBQyxHQUF1QjtRQUM1QixJQUFJLENBQUMsR0FBRyxHQUFHLEdBQUcsQ0FBQztJQUNqQixDQUFDO0NBT0YifQ==
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DnsProviderDefine } from "./api.js";
|
|
2
|
-
export declare const DNS_PROVIDER_CLASS_KEY = "pipeline:dns-provider";
|
|
3
|
-
export declare function IsDnsProvider(define: DnsProviderDefine): ClassDecorator;
|
|
1
|
+
import { DnsProviderDefine } from "./api.js";
|
|
2
|
+
export declare const DNS_PROVIDER_CLASS_KEY = "pipeline:dns-provider";
|
|
3
|
+
export declare function IsDnsProvider(define: DnsProviderDefine): ClassDecorator;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { dnsProviderRegistry } from "./registry.js";
|
|
2
|
-
import { Decorator, AUTOWIRE_KEY } from "@certd/pipeline";
|
|
3
|
-
import _ from "lodash-es";
|
|
4
|
-
// 提供一个唯一 key
|
|
5
|
-
export const DNS_PROVIDER_CLASS_KEY = "pipeline:dns-provider";
|
|
6
|
-
export function IsDnsProvider(define) {
|
|
7
|
-
return (target) => {
|
|
8
|
-
target = Decorator.target(target);
|
|
9
|
-
const autowires = {};
|
|
10
|
-
const properties = Decorator.getClassProperties(target);
|
|
11
|
-
for (const property in properties) {
|
|
12
|
-
const autowire = Reflect.getMetadata(AUTOWIRE_KEY, target, property);
|
|
13
|
-
if (autowire) {
|
|
14
|
-
autowires[property] = autowire;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
_.merge(define, { autowire: autowires });
|
|
18
|
-
Reflect.defineMetadata(DNS_PROVIDER_CLASS_KEY, define, target);
|
|
19
|
-
target.define = define;
|
|
20
|
-
dnsProviderRegistry.register(define.name, {
|
|
21
|
-
define,
|
|
22
|
-
target,
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { dnsProviderRegistry } from "./registry.js";
|
|
2
|
+
import { Decorator, AUTOWIRE_KEY } from "@certd/pipeline";
|
|
3
|
+
import _ from "lodash-es";
|
|
4
|
+
// 提供一个唯一 key
|
|
5
|
+
export const DNS_PROVIDER_CLASS_KEY = "pipeline:dns-provider";
|
|
6
|
+
export function IsDnsProvider(define) {
|
|
7
|
+
return (target) => {
|
|
8
|
+
target = Decorator.target(target);
|
|
9
|
+
const autowires = {};
|
|
10
|
+
const properties = Decorator.getClassProperties(target);
|
|
11
|
+
for (const property in properties) {
|
|
12
|
+
const autowire = Reflect.getMetadata(AUTOWIRE_KEY, target, property);
|
|
13
|
+
if (autowire) {
|
|
14
|
+
autowires[property] = autowire;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
_.merge(define, { autowire: autowires });
|
|
18
|
+
Reflect.defineMetadata(DNS_PROVIDER_CLASS_KEY, define, target);
|
|
19
|
+
target.define = define;
|
|
20
|
+
dnsProviderRegistry.register(define.name, {
|
|
21
|
+
define,
|
|
22
|
+
target,
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Rucy1wcm92aWRlci9kZWNvcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXBELE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDMUQsT0FBTyxDQUFDLE1BQU0sV0FBVyxDQUFDO0FBRTFCLGFBQWE7QUFDYixNQUFNLENBQUMsTUFBTSxzQkFBc0IsR0FBRyx1QkFBdUIsQ0FBQztBQUU5RCxNQUFNLFVBQVUsYUFBYSxDQUFDLE1BQXlCO0lBQ3JELE9BQU8sQ0FBQyxNQUFXLEVBQUUsRUFBRTtRQUNyQixNQUFNLEdBQUcsU0FBUyxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUNsQyxNQUFNLFNBQVMsR0FBUSxFQUFFLENBQUM7UUFDMUIsTUFBTSxVQUFVLEdBQUcsU0FBUyxDQUFDLGtCQUFrQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ3hELEtBQUssTUFBTSxRQUFRLElBQUksVUFBVSxFQUFFLENBQUM7WUFDbEMsTUFBTSxRQUFRLEdBQUcsT0FBTyxDQUFDLFdBQVcsQ0FBQyxZQUFZLEVBQUUsTUFBTSxFQUFFLFFBQVEsQ0FBQyxDQUFDO1lBQ3JFLElBQUksUUFBUSxFQUFFLENBQUM7Z0JBQ2IsU0FBUyxDQUFDLFFBQVEsQ0FBQyxHQUFHLFFBQVEsQ0FBQztZQUNqQyxDQUFDO1FBQ0gsQ0FBQztRQUNELENBQUMsQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxDQUFDLENBQUM7UUFFekMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxzQkFBc0IsRUFBRSxNQUFNLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFFL0QsTUFBTSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDdkIsbUJBQW1CLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUU7WUFDeEMsTUFBTTtZQUNOLE1BQU07U0FDUCxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUM7QUFDSixDQUFDIn0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./api.js";
|
|
2
|
-
export * from "./registry.js";
|
|
3
|
-
export * from "./decorator.js";
|
|
4
|
-
export * from "./base.js";
|
|
1
|
+
export * from "./api.js";
|
|
2
|
+
export * from "./registry.js";
|
|
3
|
+
export * from "./decorator.js";
|
|
4
|
+
export * from "./base.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./api.js";
|
|
2
|
-
export * from "./registry.js";
|
|
3
|
-
export * from "./decorator.js";
|
|
4
|
-
export * from "./base.js";
|
|
1
|
+
export * from "./api.js";
|
|
2
|
+
export * from "./registry.js";
|
|
3
|
+
export * from "./decorator.js";
|
|
4
|
+
export * from "./base.js";
|
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZG5zLXByb3ZpZGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxXQUFXLENBQUMifQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Registry } from "@certd/pipeline";
|
|
2
|
-
export declare const dnsProviderRegistry: Registry<unknown>;
|
|
1
|
+
import { Registry } from "@certd/pipeline";
|
|
2
|
+
export declare const dnsProviderRegistry: Registry<unknown>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Registry } from "@certd/pipeline";
|
|
2
|
-
export const dnsProviderRegistry = new Registry("dnsProvider");
|
|
1
|
+
import { Registry } from "@certd/pipeline";
|
|
2
|
+
export const dnsProviderRegistry = new Registry("dnsProvider");
|
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZG5zLXByb3ZpZGVyL3JlZ2lzdHJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUzQyxNQUFNLENBQUMsTUFBTSxtQkFBbUIsR0FBRyxJQUFJLFFBQVEsQ0FBQyxhQUFhLENBQUMsQ0FBQyJ9
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./plugin/index.js";
|
|
2
|
-
export * from "./dns-provider/index.js";
|
|
3
|
-
export * from "./access/index.js";
|
|
1
|
+
export * from "./plugin/index.js";
|
|
2
|
+
export * from "./dns-provider/index.js";
|
|
3
|
+
export * from "./access/index.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./plugin/index.js";
|
|
2
|
-
export * from "./dns-provider/index.js";
|
|
3
|
-
export * from "./access/index.js";
|
|
1
|
+
export * from "./plugin/index.js";
|
|
2
|
+
export * from "./dns-provider/index.js";
|
|
3
|
+
export * from "./access/index.js";
|
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsbUJBQW1CLENBQUMifQ==
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import * as acme from "@certd/acme-client";
|
|
2
|
-
import { Logger } from "log4js";
|
|
3
|
-
import { IContext } from "@certd/pipeline";
|
|
4
|
-
import { IDnsProvider } from "../../dns-provider/index.js";
|
|
5
|
-
import { ClientExternalAccountBindingOptions, UrlMapping } from "@certd/acme-client";
|
|
6
|
-
export type CertInfo = {
|
|
7
|
-
crt: string;
|
|
8
|
-
key: string;
|
|
9
|
-
csr: string;
|
|
10
|
-
ic?: string;
|
|
11
|
-
pfx?: string;
|
|
12
|
-
der?: string;
|
|
13
|
-
};
|
|
14
|
-
export type SSLProvider = "letsencrypt" | "google" | "zerossl";
|
|
15
|
-
export type PrivateKeyType = "rsa_1024" | "rsa_2048" | "rsa_3072" | "rsa_4096" | "ec_256" | "ec_384" | "ec_521";
|
|
16
|
-
type AcmeServiceOptions = {
|
|
17
|
-
userContext: IContext;
|
|
18
|
-
logger: Logger;
|
|
19
|
-
sslProvider: SSLProvider;
|
|
20
|
-
eab?: ClientExternalAccountBindingOptions;
|
|
21
|
-
skipLocalVerify?: boolean;
|
|
22
|
-
useMappingProxy?: boolean;
|
|
23
|
-
privateKeyType?: PrivateKeyType;
|
|
24
|
-
signal?: AbortSignal;
|
|
25
|
-
};
|
|
26
|
-
export declare class AcmeService {
|
|
27
|
-
options: AcmeServiceOptions;
|
|
28
|
-
userContext: IContext;
|
|
29
|
-
logger: Logger;
|
|
30
|
-
sslProvider: SSLProvider;
|
|
31
|
-
skipLocalVerify: boolean;
|
|
32
|
-
eab?: ClientExternalAccountBindingOptions;
|
|
33
|
-
constructor(options: AcmeServiceOptions);
|
|
34
|
-
getAccountConfig(email: string, urlMapping: UrlMapping): Promise<any>;
|
|
35
|
-
buildAccountKey(email: string): string;
|
|
36
|
-
saveAccountConfig(email: string, conf: any): Promise<void>;
|
|
37
|
-
getAcmeClient(email: string, isTest?: boolean): Promise<acme.Client>;
|
|
38
|
-
createNewKey(): Promise<string>;
|
|
39
|
-
parseDomain(fullDomain: string): string;
|
|
40
|
-
challengeCreateFn(authz: any, challenge: any, keyAuthorization: string, dnsProvider: IDnsProvider): Promise<any>;
|
|
41
|
-
/**
|
|
42
|
-
* Function used to remove an ACME challenge response
|
|
43
|
-
*
|
|
44
|
-
* @param {object} authz Authorization object
|
|
45
|
-
* @param {object} challenge Selected challenge
|
|
46
|
-
* @param {string} keyAuthorization Authorization key
|
|
47
|
-
* @param recordItem challengeCreateFn create record item
|
|
48
|
-
* @param dnsProvider dnsProvider
|
|
49
|
-
* @returns {Promise}
|
|
50
|
-
*/
|
|
51
|
-
challengeRemoveFn(authz: any, challenge: any, keyAuthorization: string, recordItem: any, dnsProvider: IDnsProvider): Promise<void>;
|
|
52
|
-
order(options: {
|
|
53
|
-
email: string;
|
|
54
|
-
domains: string | string[];
|
|
55
|
-
dnsProvider: any;
|
|
56
|
-
csrInfo: any;
|
|
57
|
-
isTest?: boolean;
|
|
58
|
-
privateKeyType?: string;
|
|
59
|
-
}): Promise<CertInfo>;
|
|
60
|
-
buildCommonNameByDomains(domains: string | string[]): {
|
|
61
|
-
commonName: string;
|
|
62
|
-
altNames: string[] | undefined;
|
|
63
|
-
};
|
|
64
|
-
private testDirectory;
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
1
|
+
import * as acme from "@certd/acme-client";
|
|
2
|
+
import { Logger } from "log4js";
|
|
3
|
+
import { IContext } from "@certd/pipeline";
|
|
4
|
+
import { IDnsProvider } from "../../dns-provider/index.js";
|
|
5
|
+
import { ClientExternalAccountBindingOptions, UrlMapping } from "@certd/acme-client";
|
|
6
|
+
export type CertInfo = {
|
|
7
|
+
crt: string;
|
|
8
|
+
key: string;
|
|
9
|
+
csr: string;
|
|
10
|
+
ic?: string;
|
|
11
|
+
pfx?: string;
|
|
12
|
+
der?: string;
|
|
13
|
+
};
|
|
14
|
+
export type SSLProvider = "letsencrypt" | "google" | "zerossl";
|
|
15
|
+
export type PrivateKeyType = "rsa_1024" | "rsa_2048" | "rsa_3072" | "rsa_4096" | "ec_256" | "ec_384" | "ec_521";
|
|
16
|
+
type AcmeServiceOptions = {
|
|
17
|
+
userContext: IContext;
|
|
18
|
+
logger: Logger;
|
|
19
|
+
sslProvider: SSLProvider;
|
|
20
|
+
eab?: ClientExternalAccountBindingOptions;
|
|
21
|
+
skipLocalVerify?: boolean;
|
|
22
|
+
useMappingProxy?: boolean;
|
|
23
|
+
privateKeyType?: PrivateKeyType;
|
|
24
|
+
signal?: AbortSignal;
|
|
25
|
+
};
|
|
26
|
+
export declare class AcmeService {
|
|
27
|
+
options: AcmeServiceOptions;
|
|
28
|
+
userContext: IContext;
|
|
29
|
+
logger: Logger;
|
|
30
|
+
sslProvider: SSLProvider;
|
|
31
|
+
skipLocalVerify: boolean;
|
|
32
|
+
eab?: ClientExternalAccountBindingOptions;
|
|
33
|
+
constructor(options: AcmeServiceOptions);
|
|
34
|
+
getAccountConfig(email: string, urlMapping: UrlMapping): Promise<any>;
|
|
35
|
+
buildAccountKey(email: string): string;
|
|
36
|
+
saveAccountConfig(email: string, conf: any): Promise<void>;
|
|
37
|
+
getAcmeClient(email: string, isTest?: boolean): Promise<acme.Client>;
|
|
38
|
+
createNewKey(): Promise<string>;
|
|
39
|
+
parseDomain(fullDomain: string): string;
|
|
40
|
+
challengeCreateFn(authz: any, challenge: any, keyAuthorization: string, dnsProvider: IDnsProvider): Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Function used to remove an ACME challenge response
|
|
43
|
+
*
|
|
44
|
+
* @param {object} authz Authorization object
|
|
45
|
+
* @param {object} challenge Selected challenge
|
|
46
|
+
* @param {string} keyAuthorization Authorization key
|
|
47
|
+
* @param recordItem challengeCreateFn create record item
|
|
48
|
+
* @param dnsProvider dnsProvider
|
|
49
|
+
* @returns {Promise}
|
|
50
|
+
*/
|
|
51
|
+
challengeRemoveFn(authz: any, challenge: any, keyAuthorization: string, recordItem: any, dnsProvider: IDnsProvider): Promise<void>;
|
|
52
|
+
order(options: {
|
|
53
|
+
email: string;
|
|
54
|
+
domains: string | string[];
|
|
55
|
+
dnsProvider: any;
|
|
56
|
+
csrInfo: any;
|
|
57
|
+
isTest?: boolean;
|
|
58
|
+
privateKeyType?: string;
|
|
59
|
+
}): Promise<CertInfo>;
|
|
60
|
+
buildCommonNameByDomains(domains: string | string[]): {
|
|
61
|
+
commonName: string;
|
|
62
|
+
altNames: string[] | undefined;
|
|
63
|
+
};
|
|
64
|
+
private testDirectory;
|
|
65
|
+
}
|
|
66
|
+
export {};
|