fix(core): update
This commit is contained in:
parent
9d23e205d8
commit
eca63e588c
@ -1,6 +1,7 @@
|
|||||||
export type TCertStatus = 'existing' | 'nonexisting' | 'pending' | 'failed';
|
export type TCertStatus = 'existing' | 'nonexisting' | 'pending' | 'failed';
|
||||||
|
|
||||||
export interface ICert {
|
export interface ICert {
|
||||||
|
id: string;
|
||||||
domainName: string;
|
domainName: string;
|
||||||
created: number;
|
created: number;
|
||||||
privateKey: string;
|
privateKey: string;
|
||||||
|
@ -12,7 +12,7 @@ import { ICert } from './interfaces';
|
|||||||
})
|
})
|
||||||
export class Cert extends plugins.smartdata.SmartDataDbDoc<Cert> implements interfaces.ICert {
|
export class Cert extends plugins.smartdata.SmartDataDbDoc<Cert> implements interfaces.ICert {
|
||||||
@unI()
|
@unI()
|
||||||
public index: string;
|
public id: string;
|
||||||
|
|
||||||
@svDb()
|
@svDb()
|
||||||
public domainName: string;
|
public domainName: string;
|
||||||
|
@ -194,6 +194,7 @@ export class SmartAcme {
|
|||||||
console.log(`Certificate:\n${cert.toString()}`);
|
console.log(`Certificate:\n${cert.toString()}`);
|
||||||
|
|
||||||
await this.certmanager.storeCertificate({
|
await this.certmanager.storeCertificate({
|
||||||
|
id: plugins.smartunique.shortId(),
|
||||||
domainName: certDomain,
|
domainName: certDomain,
|
||||||
privateKey: key.toString(),
|
privateKey: key.toString(),
|
||||||
publicKey: cert.toString(),
|
publicKey: cert.toString(),
|
||||||
|
Loading…
Reference in New Issue
Block a user