Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ruby-httpclient
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Ruby Team
ruby-httpclient
Commits
542849f1
Commit
542849f1
authored
3 years ago
by
Antonio Terceiro
Browse files
Options
Downloads
Patches
Plain Diff
Add patch to use the system certificate store
Closes: #995448
parent
b9c4b1e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/0008-Use-system-CA-certificate-store.patch
+33
-0
33 additions, 0 deletions
debian/patches/0008-Use-system-CA-certificate-store.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
34 additions
and
0 deletions
debian/patches/0008-Use-system-CA-certificate-store.patch
0 → 100644
+
33
−
0
View file @
542849f1
From: Antonio Terceiro <terceiro@debian.org>
Date: Wed, 6 Oct 2021 10:03:32 -0300
Subject: Use system CA certificate store
---
lib/httpclient/ssl_config.rb | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/lib/httpclient/ssl_config.rb b/lib/httpclient/ssl_config.rb
index f6e7ce9..d4e48f2 100644
--- a/lib/httpclient/ssl_config.rb
+++ b/lib/httpclient/ssl_config.rb
@@ -249,7 +249,7 @@
class HTTPClient
# Loads default trust anchors.
# Calling this method resets all existing sessions.
def load_trust_ca
- load_cacerts(@cert_store)
+ set_default_paths
change_notify
end
@@ -413,11 +413,6 @@
class HTTPClient
nil
end
- # Use 2048 bit certs trust anchor
- def load_cacerts(cert_store)
- file = File.join(File.dirname(__FILE__), 'cacert.pem')
- add_trust_ca_to_store(cert_store, file)
- end
end
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
542849f1
...
...
@@ -5,3 +5,4 @@
0005-tweak-test-dep-change.patch
disable-test-proxy-ssl.patch
disable_tests_related_to_http_proxy.patch
0008-Use-system-CA-certificate-store.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment