Sha256: 6d882588ec2a46aa70cca0035ef58713b68d6f199d5add371813be4d716247c3

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

#!/usr/bin/env ruby

require 'open-uri'
require 'pathname'
require 'certified'

CERT_BUNDLE_URL = 'https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt'

puts "Updating ca-bundle from #{CERT_BUNDLE_URL}"

cert_path = Pathname.new File.expand_path('../../certs', __FILE__)

open(CERT_BUNDLE_URL) do |remote_file|
  File.open(cert_path + 'ca-bundle.crt', 'w+') do |cert_file|
    remote_file.each_line do |line|
      cert_file << line
    end
  end
end

puts "Certificate bundle updated. Remember to do this regularly!"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
certified-1.0.0 bin/certified-update