mkchain 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/lib/mkchain.rb +1 -1
  3. data/mkchain.gemspec +2 -2
  4. metadata +7 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8aae86e806bc9471db4e2a5994286ac337b87adf
4
- data.tar.gz: b68eb7c03ebd4eaaef510b797560c892f63b6d4a
2
+ SHA256:
3
+ metadata.gz: e187fe157d0c68cd9aa65fe492577be7a96379fa1a173cf067083de4acf4251c
4
+ data.tar.gz: 1a25570a6bd72a9bc292d7cc3a97dbb64ce0d0381838c59c593c37ae223c9d01
5
5
  SHA512:
6
- metadata.gz: dc1decc59607d9ed117a273eb60efdeab5b007669eba5a8cbc4e0c1d6497edf9f6c1f7e3916b19da9b8fad4b5d4dc0dab93af3ecf58baff8a0d69e154d61d2fc
7
- data.tar.gz: 53e725b7dbad4eeb0c4c76d4da9c28a68455f6955457d306a1dcfe8e9360472ea3fb2a987fc6a7e4398c2355e76fb4b79389f9ce91a67917a113963180960190
6
+ metadata.gz: 5e10b6a302df386766eb68e872d0388f5ddaa1196eee30197157db0edf6c770223cfb1d1624f30fe4a8119709c0886e6f8a566fe0ca024b8d10b39c0df5f4c0c
7
+ data.tar.gz: c4d2bfd25f1b1201489f2e397db7c4ac29c8ee98fdd7f0e70325c99c6a2c8e99c9ecc143cc25722ab63e201673331b97151a275aad1bbdb4b99d8aa71a2f72ff
data/lib/mkchain.rb CHANGED
@@ -12,7 +12,7 @@ class MkChain
12
12
  url = cert.extensions.select { |ext| ext.oid == 'authorityInfoAccess' }
13
13
  .first.value.match(%r{^CA Issuers - URI:(https?://.+)$})[1] rescue break
14
14
 
15
- cert = OpenSSL::X509::Certificate.new(open(url).read) rescue break
15
+ cert = OpenSSL::X509::Certificate.new(URI.open(url).read) rescue break
16
16
  chain << cert.to_pem
17
17
  end
18
18
 
data/mkchain.gemspec CHANGED
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mkchain'
3
- s.version = '1.0.2'
3
+ s.version = '1.1.0'
4
4
  s.authors = ['David Adams']
5
5
  s.email = 'dadams@instructure.com'
6
6
  s.date = Time.now.strftime('%Y-%m-%d')
7
7
  s.license = 'MIT'
8
8
  s.homepage = 'https://github.com/instructure/mkchain'
9
- s.required_ruby_version = '>=2.0.0'
9
+ s.required_ruby_version = '>=3.0.0'
10
10
 
11
11
  s.summary = 'Create a chain file from SSL cert'
12
12
  s.description =
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkchain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Adams
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-18 00:00:00.000000000 Z
11
+ date: 2024-02-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Creates an intermediate chain file from the given SSL certificate
14
14
  email: dadams@instructure.com
@@ -25,7 +25,7 @@ homepage: https://github.com/instructure/mkchain
25
25
  licenses:
26
26
  - MIT
27
27
  metadata: {}
28
- post_install_message:
28
+ post_install_message:
29
29
  rdoc_options: []
30
30
  require_paths:
31
31
  - lib
@@ -33,16 +33,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 2.0.0
36
+ version: 3.0.0
37
37
  required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
- rubyforge_project:
44
- rubygems_version: 2.5.2
45
- signing_key:
43
+ rubygems_version: 3.2.33
44
+ signing_key:
46
45
  specification_version: 4
47
46
  summary: Create a chain file from SSL cert
48
47
  test_files: []