2016-11-01 17:27:57 +00:00
|
|
|
"use strict";
|
|
|
|
const acmeclient = require("./smartacme.classes.acmeclient");
|
|
|
|
class SmartAcme {
|
|
|
|
constructor(directoryUrlArg = '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);
|
|
|
|
});
|
|
|
|
}
|
2016-11-01 17:27:57 +00:00
|
|
|
}
|
|
|
|
exports.SmartAcme = SmartAcme;
|
2016-11-01 19:16:43 +00:00
|
|
|
class AcmeAccount {
|
|
|
|
}
|
|
|
|
exports.AcmeAccount = AcmeAccount;
|
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRhY21lLmNsYXNzZXMuc21hcnRhY21lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRhY21lLmNsYXNzZXMuc21hcnRhY21lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSw2REFBNEQ7QUFFNUQ7SUFHSSxZQUFZLGtCQUEwQixvREFBb0Q7UUFDdEYsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLFVBQVUsQ0FBQyxVQUFVLENBQUMsZUFBZSxDQUFDLENBQUE7SUFDaEUsQ0FBQztJQUVELGFBQWE7UUFDVCxJQUFJLENBQUMsVUFBVSxDQUFDLGFBQWEsQ0FBQyxjQUFjLEVBQUMsQ0FBQyxNQUFNO1lBQ2hELE9BQU8sQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUE7UUFDdkIsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDO0NBQ0o7QUFaRCw4QkFZQztBQUVEO0NBRUM7QUFGRCxrQ0FFQyJ9
|