tpm-key_attestation 0.11.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 119c14ff3ec3d663dcd7557406f4d147d8e010e61705f759cd2cba7412045458
4
- data.tar.gz: a0aae7f5759575312ca4050e94622cfcf5c24719450ba399115061df45b0ae72
3
+ metadata.gz: ae6c28ee251d9123abbdaa6c18ab7d424accaf1bb44cbe0e350ccb2bdf8c79ca
4
+ data.tar.gz: f172c0436c2dedeab2e8300396ddc515428912f6c73f5688d905723844625320
5
5
  SHA512:
6
- metadata.gz: 92d66d626a3849915ef0379cbe150363a7072e7f74e8988b93273cc0ce0ad0f5093e7a69b2ad80929de319dd682b33f6ef09dfba427b8bb83c56deed08ae08ea
7
- data.tar.gz: 9ca765e75668c4c9f400acfadabeb8c59bb89b5719adb59e926d8ce25e037efd9a3a05069fa3dfc2aa21559499c177f925fe5d67c1bbeea9ea6ebbc79ec90667
6
+ metadata.gz: aa78d70ea5a12c5768a0c24d90ae3f6137260ae8b45d14e23c716519b07a3dade2f76735c0a18b39dc1244f09e2ecd47019554395fb03c45d98a88bc454affd0
7
+ data.tar.gz: fc501bb669b8ac188a89ce63fe3052b27b22b9e29069a4ca58e4b3538d5b14fd8ae23dccfe1de89027eeb74943750c00b21f460151872b26fdc51ec6f3c45979
@@ -7,15 +7,25 @@
7
7
 
8
8
  name: build
9
9
 
10
- on: push
10
+ on:
11
+ push:
12
+ branches: [master]
13
+ pull_request:
14
+ types: [opened, synchronize]
11
15
 
12
16
  jobs:
13
17
  test:
14
- runs-on: ubuntu-20.04
18
+ runs-on: ${{ matrix.os }}
15
19
  strategy:
16
20
  fail-fast: false
17
21
  matrix:
22
+ os:
23
+ - ubuntu-20.04
24
+ - windows-latest
25
+ - macos-12
18
26
  ruby:
27
+ - '3.2'
28
+ - '3.1'
19
29
  - '3.0'
20
30
  - '2.7'
21
31
  - '2.6'
@@ -25,15 +35,38 @@ jobs:
25
35
  - openssl_2_2
26
36
  - openssl_2_1
27
37
  - openssl_3_0
38
+ - openssl_3_1
28
39
  exclude:
29
40
  - ruby: '2.4'
30
41
  gemfile: openssl_3_0
31
42
  - ruby: '2.5'
32
43
  gemfile: openssl_3_0
44
+ - ruby: '2.4'
45
+ gemfile: openssl_3_1
46
+ - ruby: '2.5'
47
+ gemfile: openssl_3_1
48
+ - ruby: '3.1'
49
+ gemfile: openssl_2_2
50
+ os: macos-12
51
+ - ruby: '3.1'
52
+ gemfile: openssl_2_1
53
+ os: macos-12
54
+ - ruby: '3.2'
55
+ gemfile: openssl_2_2
56
+ os: macos-12
57
+ - ruby: '3.2'
58
+ gemfile: openssl_2_1
59
+ os: macos-12
60
+ - ruby: '3.2'
61
+ gemfile: openssl_2_2
62
+ os: windows-latest
63
+ - ruby: '3.2'
64
+ gemfile: openssl_2_1
65
+ os: windows-latest
33
66
  env:
34
67
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
35
68
  steps:
36
- - uses: actions/checkout@v2
69
+ - uses: actions/checkout@v4
37
70
  - run: rm Gemfile.lock
38
71
  - uses: ruby/setup-ruby@v1
39
72
  with:
data/Appraisals CHANGED
@@ -11,3 +11,7 @@ end
11
11
  appraise "openssl_3_0" do
12
12
  gem "openssl", "~> 3.0.0"
13
13
  end
14
+
15
+ appraise "openssl_3_1" do
16
+ gem "openssl", "~> 3.1.0"
17
+ end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.12.1] - 2024-08-05
4
+
5
+ - Fix loading trusted certificates on Windows. #20 & #21 [@johnnyshields], [@salmanasiddiqui]
6
+
7
+ ## [v0.12.0] - 2022-07-05
8
+
9
+ - Loose OpenSSL dependency to support 3.2 users. Credits to @stanhu <3
10
+
3
11
  ## [v0.11.0] - 2022-07-05
4
12
 
5
13
  - Support OpenSSL ~>3.0.0. Credits to @ClearlyClaire <3
@@ -71,6 +79,7 @@ replacement of `JOSE` format `algorithm` string
71
79
  - `TPM::EKCertificate` wrapper
72
80
  - `TPM::SAttest` wrapper
73
81
 
82
+ [v0.12.0]: https://github.com/cedarcode/tpm-key_attestation/compare/v0.11.0...v0.12.0/
74
83
  [v0.11.0]: https://github.com/cedarcode/tpm-key_attestation/compare/v0.10.0...v0.11.0/
75
84
  [v0.10.0]: https://github.com/cedarcode/tpm-key_attestation/compare/v0.9.0...v0.10.0/
76
85
  [v0.9.0]: https://github.com/cedarcode/tpm-key_attestation/compare/v0.8.0...v0.9.0/
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tpm-key_attestation (0.10.0)
4
+ tpm-key_attestation (0.11.0)
5
5
  bindata (~> 2.4)
6
- openssl (> 2.0, < 3.1)
6
+ openssl (> 2.0)
7
7
  openssl-signature_algorithm (~> 1.0)
8
8
 
9
9
  GEM
@@ -14,11 +14,11 @@ GEM
14
14
  rake
15
15
  thor (>= 0.14.0)
16
16
  ast (2.4.2)
17
- bindata (2.4.8)
17
+ bindata (2.4.14)
18
18
  byebug (11.1.3)
19
19
  diff-lcs (1.4.4)
20
20
  jaro_winkler (1.5.4)
21
- openssl (3.0.0)
21
+ openssl (3.1.0)
22
22
  openssl-signature_algorithm (1.2.1)
23
23
  openssl (> 2.0, < 3.1)
24
24
  parallel (1.20.1)
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", "~> 2.2.0"
6
+ gem "byebug", "~> 11.0"
7
+ gem "rake", "~> 13.0"
8
+ gem "rspec", "~> 3.0"
9
+ gem "rubocop", "~> 0.80.1"
10
+ gem "openssl", "~> 3.1.0"
11
+
12
+ gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TPM
4
4
  class KeyAttestation
5
- VERSION = "0.11.0"
5
+ VERSION = "0.12.1"
6
6
  end
7
7
  end
@@ -15,7 +15,8 @@ module TPM
15
15
  begin
16
16
  pattern = File.expand_path(File.join(__dir__, "certificates", "*", "RootCA", "*.*"))
17
17
  Dir.glob(pattern).map do |filename|
18
- File.open(filename) { |file| OpenSSL::X509::Certificate.new(file) }
18
+ file = File.binread(filename)
19
+ OpenSSL::X509::Certificate.new(file)
19
20
  end
20
21
  end
21
22
 
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ["lib"]
27
27
 
28
28
  spec.add_dependency "bindata", "~> 2.4"
29
- spec.add_dependency "openssl", "> 2.0", "< 3.1"
29
+ spec.add_dependency "openssl", "> 2.0"
30
30
  spec.add_dependency "openssl-signature_algorithm", "~> 1.0"
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tpm-key_attestation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-06 00:00:00.000000000 Z
11
+ date: 2024-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -31,9 +31,6 @@ dependencies:
31
31
  - - ">"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.0'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '3.1'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -41,9 +38,6 @@ dependencies:
41
38
  - - ">"
42
39
  - !ruby/object:Gem::Version
43
40
  version: '2.0'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '3.1'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: openssl-signature_algorithm
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -81,6 +75,7 @@ files:
81
75
  - gemfiles/openssl_2_1.gemfile
82
76
  - gemfiles/openssl_2_2.gemfile
83
77
  - gemfiles/openssl_3_0.gemfile
78
+ - gemfiles/openssl_3_1.gemfile
84
79
  - lib/tpm/aik_certificate.rb
85
80
  - lib/tpm/certificates/AMD/RootCA/AMD-fTPM-ECC-RootCA.crt
86
81
  - lib/tpm/certificates/AMD/RootCA/AMD-fTPM-RSA-RootCA.crt
@@ -144,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
139
  - !ruby/object:Gem::Version
145
140
  version: '0'
146
141
  requirements: []
147
- rubygems_version: 3.2.32
142
+ rubygems_version: 3.5.11
148
143
  signing_key:
149
144
  specification_version: 4
150
145
  summary: TPM Key Attestation verifier