@certd/plugin-cert 1.22.0 → 1.22.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 +6 -0
- package/LICENSE +661 -0
- package/dist/access/eab-access.d.ts +4 -4
- package/dist/access/eab-access.js +46 -46
- package/dist/access/index.d.ts +1 -1
- package/dist/access/index.js +1 -1
- package/dist/bundle.js +1 -1
- package/dist/d/plugin/cert-plugin/acme.d.ts +0 -2
- package/dist/d/plugin/cert-plugin/index.d.ts +0 -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/plugin/cert-plugin/acme.d.ts +54 -54
- package/dist/plugin/cert-plugin/acme.js +203 -203
- package/dist/plugin/cert-plugin/base.d.ts +49 -49
- package/dist/plugin/cert-plugin/base.js +4 -1
- package/dist/plugin/cert-plugin/cert-reader.d.ts +16 -16
- package/dist/plugin/cert-plugin/cert-reader.js +45 -45
- package/dist/plugin/cert-plugin/index.d.ts +16 -16
- package/dist/plugin/cert-plugin/index.js +5 -3
- package/dist/plugin/cert-plugin/lego.d.ts +1 -1
- package/dist/plugin/cert-plugin/lego.js +17 -9
- package/dist/plugin-cert.mjs +11786 -0
- package/dist/plugin-cert.umd.js +28 -0
- package/package.json +4 -4
- package/stats.html +6177 -0
- package/test/user.secret.js +7 -0
- package/test/user.secret.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -13,14 +13,12 @@ export declare class AcmeService {
|
|
|
13
13
|
userContext: IContext;
|
|
14
14
|
logger: Logger;
|
|
15
15
|
sslProvider: SSLProvider;
|
|
16
|
-
skipLocalVerify: boolean;
|
|
17
16
|
eab?: ClientExternalAccountBindingOptions;
|
|
18
17
|
constructor(options: {
|
|
19
18
|
userContext: IContext;
|
|
20
19
|
logger: Logger;
|
|
21
20
|
sslProvider: SSLProvider;
|
|
22
21
|
eab?: ClientExternalAccountBindingOptions;
|
|
23
|
-
skipLocalVerify?: boolean;
|
|
24
22
|
});
|
|
25
23
|
getAccountConfig(email: string): Promise<any>;
|
|
26
24
|
buildAccountKey(email: string): string;
|
|
@@ -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";
|
|
@@ -1,54 +1,54 @@
|
|
|
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 } from "@certd/acme-client";
|
|
6
|
-
export type CertInfo = {
|
|
7
|
-
crt: string;
|
|
8
|
-
key: string;
|
|
9
|
-
csr: string;
|
|
10
|
-
};
|
|
11
|
-
export type SSLProvider = "letsencrypt" | "buypass" | "zerossl";
|
|
12
|
-
export declare class AcmeService {
|
|
13
|
-
userContext: IContext;
|
|
14
|
-
logger: Logger;
|
|
15
|
-
sslProvider: SSLProvider;
|
|
16
|
-
skipLocalVerify: boolean;
|
|
17
|
-
eab?: ClientExternalAccountBindingOptions;
|
|
18
|
-
constructor(options: {
|
|
19
|
-
userContext: IContext;
|
|
20
|
-
logger: Logger;
|
|
21
|
-
sslProvider: SSLProvider;
|
|
22
|
-
eab?: ClientExternalAccountBindingOptions;
|
|
23
|
-
skipLocalVerify?: boolean;
|
|
24
|
-
});
|
|
25
|
-
getAccountConfig(email: string): Promise<any>;
|
|
26
|
-
buildAccountKey(email: string): string;
|
|
27
|
-
saveAccountConfig(email: string, conf: any): Promise<void>;
|
|
28
|
-
getAcmeClient(email: string, isTest?: boolean): Promise<acme.Client>;
|
|
29
|
-
createNewKey(): Promise<string>;
|
|
30
|
-
parseDomain(fullDomain: string): string;
|
|
31
|
-
challengeCreateFn(authz: any, challenge: any, keyAuthorization: string, dnsProvider: IDnsProvider): Promise<any>;
|
|
32
|
-
/**
|
|
33
|
-
* Function used to remove an ACME challenge response
|
|
34
|
-
*
|
|
35
|
-
* @param {object} authz Authorization object
|
|
36
|
-
* @param {object} challenge Selected challenge
|
|
37
|
-
* @param {string} keyAuthorization Authorization key
|
|
38
|
-
* @param recordItem challengeCreateFn create record item
|
|
39
|
-
* @param dnsProvider dnsProvider
|
|
40
|
-
* @returns {Promise}
|
|
41
|
-
*/
|
|
42
|
-
challengeRemoveFn(authz: any, challenge: any, keyAuthorization: string, recordItem: any, dnsProvider: IDnsProvider): Promise<void>;
|
|
43
|
-
order(options: {
|
|
44
|
-
email: string;
|
|
45
|
-
domains: string | string[];
|
|
46
|
-
dnsProvider: any;
|
|
47
|
-
csrInfo: any;
|
|
48
|
-
isTest?: boolean;
|
|
49
|
-
}): Promise<CertInfo>;
|
|
50
|
-
buildCommonNameByDomains(domains: string | string[]): {
|
|
51
|
-
commonName: string;
|
|
52
|
-
altNames: string[] | undefined;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
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 } from "@certd/acme-client";
|
|
6
|
+
export type CertInfo = {
|
|
7
|
+
crt: string;
|
|
8
|
+
key: string;
|
|
9
|
+
csr: string;
|
|
10
|
+
};
|
|
11
|
+
export type SSLProvider = "letsencrypt" | "buypass" | "zerossl";
|
|
12
|
+
export declare class AcmeService {
|
|
13
|
+
userContext: IContext;
|
|
14
|
+
logger: Logger;
|
|
15
|
+
sslProvider: SSLProvider;
|
|
16
|
+
skipLocalVerify: boolean;
|
|
17
|
+
eab?: ClientExternalAccountBindingOptions;
|
|
18
|
+
constructor(options: {
|
|
19
|
+
userContext: IContext;
|
|
20
|
+
logger: Logger;
|
|
21
|
+
sslProvider: SSLProvider;
|
|
22
|
+
eab?: ClientExternalAccountBindingOptions;
|
|
23
|
+
skipLocalVerify?: boolean;
|
|
24
|
+
});
|
|
25
|
+
getAccountConfig(email: string): Promise<any>;
|
|
26
|
+
buildAccountKey(email: string): string;
|
|
27
|
+
saveAccountConfig(email: string, conf: any): Promise<void>;
|
|
28
|
+
getAcmeClient(email: string, isTest?: boolean): Promise<acme.Client>;
|
|
29
|
+
createNewKey(): Promise<string>;
|
|
30
|
+
parseDomain(fullDomain: string): string;
|
|
31
|
+
challengeCreateFn(authz: any, challenge: any, keyAuthorization: string, dnsProvider: IDnsProvider): Promise<any>;
|
|
32
|
+
/**
|
|
33
|
+
* Function used to remove an ACME challenge response
|
|
34
|
+
*
|
|
35
|
+
* @param {object} authz Authorization object
|
|
36
|
+
* @param {object} challenge Selected challenge
|
|
37
|
+
* @param {string} keyAuthorization Authorization key
|
|
38
|
+
* @param recordItem challengeCreateFn create record item
|
|
39
|
+
* @param dnsProvider dnsProvider
|
|
40
|
+
* @returns {Promise}
|
|
41
|
+
*/
|
|
42
|
+
challengeRemoveFn(authz: any, challenge: any, keyAuthorization: string, recordItem: any, dnsProvider: IDnsProvider): Promise<void>;
|
|
43
|
+
order(options: {
|
|
44
|
+
email: string;
|
|
45
|
+
domains: string | string[];
|
|
46
|
+
dnsProvider: any;
|
|
47
|
+
csrInfo: any;
|
|
48
|
+
isTest?: boolean;
|
|
49
|
+
}): Promise<CertInfo>;
|
|
50
|
+
buildCommonNameByDomains(domains: string | string[]): {
|
|
51
|
+
commonName: string;
|
|
52
|
+
altNames: string[] | undefined;
|
|
53
|
+
};
|
|
54
|
+
}
|