diff options
Diffstat (limited to 'spec/support/proxy_helper.rb')
| -rw-r--r-- | spec/support/proxy_helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/support/proxy_helper.rb b/spec/support/proxy_helper.rb index cf9e306..700fe38 100644 --- a/spec/support/proxy_helper.rb +++ b/spec/support/proxy_helper.rb @@ -7,7 +7,7 @@ module ProxyHelper Dir.chdir License::Management.root.join('tmp') do system([ "rm -f #{host}.*", - "openssl req -x509 -newkey rsa:4096 -keyout #{host}.key -out #{host}.crt -days 999 -nodes -subj \"/C=/ST=/L=/O=/OU=/CN=*.test\"", + "/usr/bin/openssl req -x509 -newkey rsa:4096 -keyout #{host}.key -out #{host}.crt -days 999 -nodes -subj '/C=/ST=/L=/O=/OU=/CN=*.test' -addext 'subjectAltName=DNS:nuget.test,DNS:rubygems.test,DNS:goproxy.test'", "cat #{host}.* > #{host}.pem" ].join("&&")) end @@ -36,5 +36,8 @@ RSpec.configure do |config| config.after(:example, type: :integration) do stop_proxy_server system("rm -f /usr/local/share/ca-certificates/custom.*") + system("rm -f /usr/lib/ssl/certs/custom.*") + system("update-ca-certificates -v") + system("c_rehash -v") end end |
