fix(core): update

This commit is contained in:
Philipp Kunz 2019-01-16 22:34:38 +01:00
parent 9d23e205d8
commit eca63e588c
3 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
export type TCertStatus = 'existing' | 'nonexisting' | 'pending' | 'failed';
export interface ICert {
id: string;
domainName: string;
created: number;
privateKey: string;

View File

@ -12,7 +12,7 @@ import { ICert } from './interfaces';
})
export class Cert extends plugins.smartdata.SmartDataDbDoc<Cert> implements interfaces.ICert {
@unI()
public index: string;
public id: string;
@svDb()
public domainName: string;

View File

@ -194,6 +194,7 @@ export class SmartAcme {
console.log(`Certificate:\n${cert.toString()}`);
await this.certmanager.storeCertificate({
id: plugins.smartunique.shortId(),
domainName: certDomain,
privateKey: key.toString(),
publicKey: cert.toString(),