mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
fixed codeclimate errors
This commit is contained in:
parent
e0c47cdb35
commit
788af6cc5f
15 changed files with 32 additions and 31 deletions
|
@ -81,11 +81,11 @@ class Certificate < ApplicationRecord
|
|||
csr_file.rewind
|
||||
|
||||
crt_file = Tempfile.new('client_crt')
|
||||
_out, err, _st = Open3.capture3("openssl ca -config #{ENV['openssl_config_path']} \
|
||||
-keyfile #{ENV['ca_key_path']} \
|
||||
-cert #{ENV['ca_cert_path']} \
|
||||
-extensions usr_cert -notext -md sha256 \
|
||||
-in #{csr_file.path} -out #{crt_file.path} -key '#{ENV['ca_key_password']}' -batch")
|
||||
_out, err, _st = Open3.capture3("openssl", "ca", "-config", ENV['openssl_config_path'],
|
||||
"-keyfile", ENV['ca_key_path'],
|
||||
"-cert", ENV['ca_cert_path'],
|
||||
"-extensions", "usr_cert", "-notext", "-md sha256",
|
||||
"-in", csr_file.path, "-out", crt_file.path, "-key", ENV['ca_key_password'], "-batch")
|
||||
|
||||
if err.match?(/Data Base Updated/)
|
||||
crt_file.rewind
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue