We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4565e15 commit 08e5420Copy full SHA for 08e5420
packaging/pact-broker.rb
@@ -12,4 +12,17 @@ def basename
12
end
13
14
15
+# Travelling Ruby sets its own CA cert bundle in lib/ruby/bin/ruby_environment
16
+# and creates backup environment variables for the original SSL_CERT values.
17
+# Restore the original values here *if they are present* so that we can connect to
18
+# a broker with a custom SSL certificate.
19
+
20
+if ENV['ORIG_SSL_CERT_DIR'] && ENV['ORIG_SSL_CERT_DIR'] != ''
21
+ ENV['SSL_CERT_DIR'] = ENV['ORIG_SSL_CERT_DIR']
22
+end
23
24
+if ENV['ORIG_SSL_CERT_FILE'] && ENV['ORIG_SSL_CERT_FILE'] != ''
25
+ ENV['SSL_CERT_FILE'] = ENV['ORIG_SSL_CERT_FILE']
26
27
28
PactBroker::Client::CLI::Broker.start
0 commit comments