refactor result generation

This commit is contained in:
DocuSeal
2023-10-11 21:05:42 +03:00
parent 761bb07ee6
commit 3dd7c47558
12 changed files with 40 additions and 25 deletions
+1 -2
View File
@@ -1,12 +1,11 @@
# frozen_string_literal: true
module GenerateCertificate
NAME = Docuseal::PRODUCT_NAME
SIZE = 2**11
module_function
def call(name = NAME)
def call(name = Docuseal.product_name)
root_cert, root_key = generate_root_ca(name)
sub_cert, sub_key = generate_sub_ca(name, root_cert, root_key)