summaryrefslogtreecommitdiff
path: root/www/gist/files/patch-build-gist
blob: b263ffd2af84ef74e217a55a5256bce29257d80b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- build/gist.orig	2020-02-05 20:01:45 UTC
+++ build/gist
@@ -1713,7 +1713,8 @@ module Gist
                  end
     if uri.scheme == "https"
       connection.use_ssl = true
-      connection.verify_mode = OpenSSL::SSL::VERIFY_NONE
+      connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
+      connection.ca_file = "%%LOCALBASE%%/share/certs/ca-root-nss.crt"
     end
     connection.open_timeout = 10
     connection.read_timeout = 10