fix(cert): fix tsclass ICert usage

This commit is contained in:
Juergen Kunz
2025-07-13 00:41:44 +00:00
parent 2d2e9e9475
commit eac6075a12
2 changed files with 30 additions and 20 deletions

View File

@ -260,11 +260,11 @@ export class SmartCertManager {
// Convert to internal certificate format
const certData: ICertificateData = {
cert: customCert.cert,
key: customCert.key,
ca: customCert.ca || '',
cert: customCert.publicKey,
key: customCert.privateKey,
ca: '',
issueDate: new Date(),
expiryDate: this.extractExpiryDate(customCert.cert),
expiryDate: this.extractExpiryDate(customCert.publicKey),
source: 'custom'
};