From 51c932ee95695c8bdb316b0edbec67199f055c1c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 10 Feb 2018 17:14:20 +0000 Subject: [PATCH] Make trac use https when authenticating --- cookbooks/trac/files/default/trac-authenticate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/trac/files/default/trac-authenticate b/cookbooks/trac/files/default/trac-authenticate index 489a12ca0..a25563736 100755 --- a/cookbooks/trac/files/default/trac-authenticate +++ b/cookbooks/trac/files/default/trac-authenticate @@ -9,7 +9,9 @@ pass = gets.chop request = Net::HTTP::Get.new("/api/0.6/user/details") request.basic_auth user, pass -response = Net::HTTP.new("api.openstreetmap.org").request(request) +response = Net::HTTP.start("api.openstreetmap.org", :use_ssl => true) do |http| + http.request(request) +end exit!(0) if response.is_a?(Net::HTTPSuccess) exit!(1) -- 2.43.2