File: add-missing-x509v3-extensions-in-spec

package info (click to toggle)
ruby-http 4.4.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 704 kB
  • sloc: ruby: 5,388; makefile: 9
file content (31 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Date: Wed, 17 Nov 2021 01:26:47 +0100
Subject: Add missing x509v3 extensions in spec
Applied-Upstream: yes
---
 spec/support/ssl_helper.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/spec/support/ssl_helper.rb b/spec/support/ssl_helper.rb
index 21e4066..3d27ede 100644
--- a/spec/support/ssl_helper.rb
+++ b/spec/support/ssl_helper.rb
@@ -35,6 +35,8 @@ module SSLHelper
   end
 
   class ChildCertificate < ::CertificateAuthority::Certificate
+    EXTENSIONS = {"extendedKeyUsage" => {"usage" => %w(serverAuth clientAuth)}}
+
     def initialize(parent)
       super()
 
@@ -45,7 +47,8 @@ module SSLHelper
 
       self.parent = parent
 
-      sign!
+      sign!("extensions" => EXTENSIONS)
+
     end
 
     def cert