start with certificate signing process
This commit is contained in:
3
dist/smartacme.classes.acmeaccount.d.ts
vendored
3
dist/smartacme.classes.acmeaccount.d.ts
vendored
@ -0,0 +1,3 @@
|
||||
import 'typings-global';
|
||||
export declare class AcmeAccount {
|
||||
}
|
||||
|
7
dist/smartacme.classes.acmeaccount.js
vendored
7
dist/smartacme.classes.acmeaccount.js
vendored
@ -1 +1,6 @@
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRhY21lLmNsYXNzZXMuYWNtZWFjY291bnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGFjbWUuY2xhc3Nlcy5hY21lYWNjb3VudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
||||
"use strict";
|
||||
require("typings-global");
|
||||
class AcmeAccount {
|
||||
}
|
||||
exports.AcmeAccount = AcmeAccount;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRhY21lLmNsYXNzZXMuYWNtZWFjY291bnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGFjbWUuY2xhc3Nlcy5hY21lYWNjb3VudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXVCO0FBRXZCO0NBRUM7QUFGRCxrQ0FFQyJ9
|
3
dist/smartacme.classes.acmecert.d.ts
vendored
3
dist/smartacme.classes.acmecert.d.ts
vendored
@ -0,0 +1,3 @@
|
||||
import 'typings-global';
|
||||
export declare class AcmeCert {
|
||||
}
|
||||
|
7
dist/smartacme.classes.acmecert.js
vendored
7
dist/smartacme.classes.acmecert.js
vendored
@ -1 +1,6 @@
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRhY21lLmNsYXNzZXMuYWNtZWNlcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGFjbWUuY2xhc3Nlcy5hY21lY2VydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
||||
"use strict";
|
||||
require("typings-global");
|
||||
class AcmeCert {
|
||||
}
|
||||
exports.AcmeCert = AcmeCert;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRhY21lLmNsYXNzZXMuYWNtZWNlcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGFjbWUuY2xhc3Nlcy5hY21lY2VydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXVCO0FBRXZCO0NBRUM7QUFGRCw0QkFFQyJ9
|
2
dist/smartacme.classes.helper.d.ts
vendored
2
dist/smartacme.classes.helper.d.ts
vendored
@ -14,7 +14,7 @@ export declare class SmartacmeHelper {
|
||||
*/
|
||||
createKeypair(bit?: number): IRsaKeypair;
|
||||
/**
|
||||
* getReg
|
||||
* gets an existing registration
|
||||
* @executes ASYNC
|
||||
*/
|
||||
getReg(): q.Promise<{}>;
|
||||
|
2
dist/smartacme.classes.helper.js
vendored
2
dist/smartacme.classes.helper.js
vendored
@ -17,7 +17,7 @@ class SmartacmeHelper {
|
||||
};
|
||||
}
|
||||
/**
|
||||
* getReg
|
||||
* gets an existing registration
|
||||
* @executes ASYNC
|
||||
*/
|
||||
getReg() {
|
||||
|
19
dist/smartacme.classes.smartacme.d.ts
vendored
19
dist/smartacme.classes.smartacme.d.ts
vendored
@ -2,7 +2,18 @@
|
||||
import 'typings-global';
|
||||
import * as q from 'q';
|
||||
import { SmartacmeHelper, IRsaKeypair } from './smartacme.classes.helper';
|
||||
export declare type TChallenge = 'dns-01' | 'http-01';
|
||||
export declare type TChallengeType = 'dns-01' | 'http-01';
|
||||
export declare type TChallengeStatus = 'pending';
|
||||
export interface ISmartAcmeChallenge {
|
||||
uri: string;
|
||||
status: TChallengeStatus;
|
||||
type: TChallengeType;
|
||||
token: string;
|
||||
keyAuthorization: string;
|
||||
}
|
||||
export interface ISmartAcmeChallengeAccepted extends ISmartAcmeChallenge {
|
||||
keyHash: string;
|
||||
}
|
||||
/**
|
||||
* class SmartAcme exports methods for maintaining SSL Certificates
|
||||
*/
|
||||
@ -30,11 +41,15 @@ export declare class SmartAcme {
|
||||
* @param domainNameArg - the domain name to request a challenge for
|
||||
* @param challengeType - the challenge type to request
|
||||
*/
|
||||
requestChallenge(domainNameArg: string, challengeTypeArg?: TChallenge): q.Promise<{}>;
|
||||
requestChallenge(domainNameArg: string, challengeTypeArg?: TChallengeType): q.Promise<ISmartAcmeChallengeAccepted>;
|
||||
/**
|
||||
* getCertificate - takes care of cooldown, validation polling and certificate retrieval
|
||||
*/
|
||||
getCertificate(): void;
|
||||
/**
|
||||
* validates a challenge
|
||||
*/
|
||||
validate(challenge: ISmartAcmeChallengeAccepted): q.Promise<{}>;
|
||||
/**
|
||||
* accept a challenge - for private use only
|
||||
*/
|
||||
|
54
dist/smartacme.classes.smartacme.js
vendored
54
dist/smartacme.classes.smartacme.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user