2016-11-11 13:17:50 +00:00
|
|
|
/// <reference types="q" />
|
|
|
|
import * as q from 'q';
|
2017-01-14 17:36:33 +00:00
|
|
|
import { AcmeAccount } from './smartacme.classes.acmeaccount';
|
|
|
|
/**
|
|
|
|
* a rsa keypair needed for account creation and subsequent requests
|
|
|
|
*/
|
|
|
|
export interface IRsaKeypair {
|
|
|
|
publicKey: string;
|
|
|
|
privateKey: string;
|
2017-01-14 13:14:50 +00:00
|
|
|
}
|
2017-01-14 17:36:33 +00:00
|
|
|
export { AcmeAccount } from './smartacme.classes.acmeaccount';
|
2017-01-25 01:45:48 +00:00
|
|
|
export { AcmeCert, ISmartAcmeChallenge, ISmartAcmeChallengeChosen } from './smartacme.classes.acmecert';
|
2016-11-11 13:17:50 +00:00
|
|
|
/**
|
|
|
|
* class SmartAcme exports methods for maintaining SSL Certificates
|
|
|
|
*/
|
2016-11-01 17:27:57 +00:00
|
|
|
export declare class SmartAcme {
|
2017-01-01 17:05:26 +00:00
|
|
|
acmeUrl: string;
|
2016-11-11 13:17:50 +00:00
|
|
|
productionBool: boolean;
|
2017-01-01 17:05:26 +00:00
|
|
|
keyPair: IRsaKeypair;
|
2017-01-01 20:20:12 +00:00
|
|
|
rawacmeClient: any;
|
2016-11-07 17:41:52 +00:00
|
|
|
/**
|
2017-01-01 17:05:26 +00:00
|
|
|
* the constructor for class SmartAcme
|
2016-11-07 17:41:52 +00:00
|
|
|
*/
|
2017-01-01 17:05:26 +00:00
|
|
|
constructor(productionArg?: boolean);
|
2016-11-07 17:41:52 +00:00
|
|
|
/**
|
2017-01-14 17:36:33 +00:00
|
|
|
* init the smartacme instance
|
2017-01-01 20:20:12 +00:00
|
|
|
*/
|
2017-01-14 17:36:33 +00:00
|
|
|
init(): q.Promise<{}>;
|
2017-01-01 23:18:51 +00:00
|
|
|
/**
|
2017-01-14 17:36:33 +00:00
|
|
|
* creates an account if not currently present in module
|
|
|
|
* @executes ASYNC
|
2017-01-01 23:18:51 +00:00
|
|
|
*/
|
2017-01-15 22:11:51 +00:00
|
|
|
createAcmeAccount(): q.Promise<AcmeAccount>;
|
2016-11-01 17:27:57 +00:00
|
|
|
}
|