Compare commits

...

1 Commits

Author SHA1 Message Date
Jamie Curnow
13fbc53591 Fix bug when adding invalid custom certs 2026-02-10 14:54:33 +10:00

View File

@@ -660,8 +660,8 @@ const internalCertificate = {
* @param {Boolean} [throwExpired] Throw when the certificate is out of date
*/
getCertificateInfo: async (certificate, throwExpired) => {
const filepath = await tempWrite(certificate, "/tmp");
try {
const filepath = await tempWrite(certificate, "/tmp");
const certData = await internalCertificate.getCertificateInfoFromFile(filepath, throwExpired);
fs.unlinkSync(filepath);
return certData;