refactor sign params

This commit is contained in:
Pete Matsyburka committed 2024-05-01 23:40:09 +03:00
1 parent 71319c1548
commit 99341e773f
6 files changed
+40 -20

No files matched your search

+11
View File
@@ -60,6 +60,17 @@ module Docuseal
ENV['ACTIVE_STORAGE_PUBLIC'] == 'true'
end
def default_pkcs
@default_pkcs ||= GenerateCertificate.load_pkcs(Docuseal::CERTS)
end
def trusted_certs
@trusted_certs ||=
ENV['TRUSTED_CERTS'].to_s.split("\n\n").map do |base64|
OpenSSL::X509::Certificate.new(base64)
end
end
def default_url_options
return DEFAULT_URL_OPTIONS if multitenant?