Skip to content

Commit 0caa6c5

Browse files
fix(authentication): fix certificate issues that break the authentication (#522)
Co-authored-by: jeffladiray <[email protected]>
1 parent f16e112 commit 0caa6c5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

config/initializers/httpclient.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'httpclient'
2+
3+
class HTTPClient
4+
alias original_initialize initialize
5+
6+
def initialize(*args, &block)
7+
original_initialize(*args, &block)
8+
# NOTICE: Force use of the default system CA certs (instead of the 6 year old bundled ones).
9+
@session_manager&.ssl_config&.set_default_paths
10+
end
11+
end

0 commit comments

Comments
 (0)