mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-15 21:48:04 +00:00
Fix bug when adding invalid custom certs
This commit is contained in:
1 parent
d19f5c1960
commit
13fbc53591
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user