mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-02-10 20:52:57 +00:00
Fix bug when adding invalid custom certs
This commit is contained in:
@@ -660,8 +660,8 @@ const internalCertificate = {
|
|||||||
* @param {Boolean} [throwExpired] Throw when the certificate is out of date
|
* @param {Boolean} [throwExpired] Throw when the certificate is out of date
|
||||||
*/
|
*/
|
||||||
getCertificateInfo: async (certificate, throwExpired) => {
|
getCertificateInfo: async (certificate, throwExpired) => {
|
||||||
try {
|
|
||||||
const filepath = await tempWrite(certificate, "/tmp");
|
const filepath = await tempWrite(certificate, "/tmp");
|
||||||
|
try {
|
||||||
const certData = await internalCertificate.getCertificateInfoFromFile(filepath, throwExpired);
|
const certData = await internalCertificate.getCertificateInfoFromFile(filepath, throwExpired);
|
||||||
fs.unlinkSync(filepath);
|
fs.unlinkSync(filepath);
|
||||||
return certData;
|
return certData;
|
||||||
|
|||||||
Reference in New Issue
Block a user