Fixed bug where unencrypted ssl certs are not working probably

This commit is contained in:
Justin8303 2021-11-13 15:38:44 +01:00
parent 131757bd82
commit e85a7703f2

View file

@ -66,7 +66,7 @@ async function decrypt(encryptedData, secret, defaultCipher) {
return encryptedData;
}
if (!secret) {
if (!secret && decryptData.format !== 'cleartext') {
// data is encrypted but we do not have a secret
let err = new Error('Failed to decrypt data. No secret provided.');
err.responseCode = 500;