adjust cert vars
This commit is contained in:
committed by
Oleksandr Turchyn
parent
99ad6e36ac
commit
53bef85a63
@@ -111,6 +111,8 @@ module Accounts
|
|||||||
|
|
||||||
data
|
data
|
||||||
else
|
else
|
||||||
|
return Docuseal.default_pkcs if Docuseal::CERTS.present?
|
||||||
|
|
||||||
EncryptedConfig.find_by(account:, key: EncryptedConfig::ESIGN_CERTS_KEY)&.value ||
|
EncryptedConfig.find_by(account:, key: EncryptedConfig::ESIGN_CERTS_KEY)&.value ||
|
||||||
EncryptedConfig.find_by(key: EncryptedConfig::ESIGN_CERTS_KEY).value
|
EncryptedConfig.find_by(key: EncryptedConfig::ESIGN_CERTS_KEY).value
|
||||||
end
|
end
|
||||||
@@ -143,6 +145,8 @@ module Accounts
|
|||||||
value = EncryptedConfig.find_by(account:, key: EncryptedConfig::ESIGN_CERTS_KEY)&.value || {}
|
value = EncryptedConfig.find_by(account:, key: EncryptedConfig::ESIGN_CERTS_KEY)&.value || {}
|
||||||
|
|
||||||
Docuseal::CERTS.merge(value)
|
Docuseal::CERTS.merge(value)
|
||||||
|
elsif Docuseal::CERTS.present?
|
||||||
|
Docuseal::CERTS
|
||||||
else
|
else
|
||||||
EncryptedConfig.find_by(key: EncryptedConfig::ESIGN_CERTS_KEY)&.value || {}
|
EncryptedConfig.find_by(key: EncryptedConfig::ESIGN_CERTS_KEY)&.value || {}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user