diff --git a/services/certificates.service.js b/services/certificates.service.js index 365c468..b79da6b 100644 --- a/services/certificates.service.js +++ b/services/certificates.service.js @@ -387,12 +387,17 @@ module.exports = { const saved = await this.createEntity(null, { domain: params.domain, keySelector: params.keySelector, + environment: "production", // TODO: get the environment from the context + email:`postmaster@${params.domain}`, type: 'dkim', privkey: privateKey, cert: publicKey, + chain: publicKey, expiresAt: Date.now() + (1000 * 3600 * 24 * 365 * 10), // 10 years }); + + // return the saved dkim keys return saved; }