change flags in openssl cert generator

This commit is contained in:
olegphenomenon 2021-10-11 15:40:13 +03:00
parent 6a4e6269c6
commit ce15a708a0

View file

@ -83,7 +83,7 @@ class Certificate < ApplicationRecord
crt_file = Tempfile.new('client_crt') crt_file = Tempfile.new('client_crt')
_out, err, _st = Open3.capture3('openssl', 'ca', '-config', ENV['openssl_config_path'], _out, err, _st = Open3.capture3('openssl', 'ca', '-config', ENV['openssl_config_path'],
'-keyfile', ENV['ca_key_path'], '-cert', ENV['ca_cert_path'], '-keyfile', ENV['ca_key_path'], '-cert', ENV['ca_cert_path'],
'-extensions', 'usr_cert', '-notext', '-md sha256', '-extensions', 'usr_cert', '-notext', '-md', 'sha256',
'-in', csr_file.path, '-out', crt_file.path, '-key', ENV['ca_key_password'], '-in', csr_file.path, '-out', crt_file.path, '-key', ENV['ca_key_password'],
'-batch') '-batch')