diff options
| author | mo khan <mo.khan@gmail.com> | 2020-07-21 14:50:23 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-07-22 11:14:41 -0600 |
| commit | f4ec1f1bf826654ab963d32a2d4a2588ecb91c04 (patch) | |
| tree | d0273449c4569e2faffd053c4ed1287ef081a221 /lib/license/management/shell.rb | |
| parent | ca675527b53c2a8316c962ee1a17bc1ee1c0c156 (diff) | |
Combine default/custom certs in cacert
Diffstat (limited to 'lib/license/management/shell.rb')
| -rw-r--r-- | lib/license/management/shell.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/license/management/shell.rb b/lib/license/management/shell.rb index 47639df..1a99895 100644 --- a/lib/license/management/shell.rb +++ b/lib/license/management/shell.rb @@ -4,11 +4,12 @@ module License module Management class Shell SPLIT_SCRIPT = "'BEGIN {x=0;} /BEGIN CERT/{x++} { print > \"custom.\" x \".crt\" }'" - attr_reader :custom_certificate_path, :logger + attr_reader :default_certificate_path, :custom_certificate_path, :logger def initialize(logger: License::Management.logger, certificate: ENV['ADDITIONAL_CA_CERT_BUNDLE']) @logger = logger @custom_certificate_path = Pathname.new('/usr/local/share/ca-certificates/custom.crt') + @default_certificate_path = Pathname.new('/etc/ssl/certs/ca-certificates.crt') trust!(certificate) if present?(certificate) end |
