2016-11-01 17:27:57 +00:00
|
|
|
import * as plugins from './smartacme.plugins'
|
|
|
|
import * as acmeclient from './smartacme.classes.acmeclient'
|
|
|
|
|
|
|
|
export class SmartAcme {
|
2016-11-01 19:16:43 +00:00
|
|
|
acmeAccount: AcmeAccount
|
2016-11-01 17:27:57 +00:00
|
|
|
acmeClient: acmeclient.AcmeClient
|
|
|
|
constructor(directoryUrlArg: string = 'https://acme-staging.api.letsencrypt.org/directory') {
|
|
|
|
this.acmeClient = new acmeclient.AcmeClient(directoryUrlArg)
|
|
|
|
}
|
2016-11-01 19:16:43 +00:00
|
|
|
|
|
|
|
createAccount() {
|
|
|
|
this.acmeClient.createAccount('test@bleu.de',(answer) => {
|
|
|
|
console.log(answer)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class AcmeAccount {
|
|
|
|
|
2016-11-01 17:27:57 +00:00
|
|
|
}
|