From 40f363bd4fdb7368e7f2021486640a44dd9b929f Mon Sep 17 00:00:00 2001 From: Tech-no-1 <60796219+Tech-no-1@users.noreply.github.com> Date: Tue, 17 Feb 2026 02:58:18 +0100 Subject: [PATCH] Fix uploading of custom certificates --- backend/internal/certificate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/certificate.js b/backend/internal/certificate.js index 50c615b7..d54e941d 100644 --- a/backend/internal/certificate.js +++ b/backend/internal/certificate.js @@ -630,7 +630,7 @@ const internalCertificate = { * @param {String} privateKey This is the entire key contents as a string */ checkPrivateKey: async (privateKey) => { - const filepath = await tempWrite(privateKey, "/tmp"); + const filepath = await tempWrite(privateKey); const failTimeout = setTimeout(() => { throw new error.ValidationError( "Result Validation Error: Validation timed out. This could be due to the key being passphrase-protected.", @@ -660,7 +660,7 @@ const internalCertificate = { * @param {Boolean} [throwExpired] Throw when the certificate is out of date */ getCertificateInfo: async (certificate, throwExpired) => { - const filepath = await tempWrite(certificate, "/tmp"); + const filepath = await tempWrite(certificate); try { const certData = await internalCertificate.getCertificateInfoFromFile(filepath, throwExpired); fs.unlinkSync(filepath);