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

package info (click to toggle)
ruby-http 4.4.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 676 kB
  • sloc: ruby: 5,384; makefile: 9
file content (22 lines) | stat: -rw-r--r-- 467 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
Description: Add missing x509v3 extensions in spec
--- a/spec/support/ssl_helper.rb
+++ b/spec/support/ssl_helper.rb
@@ -35,6 +35,8 @@
   end
 
   class ChildCertificate < ::CertificateAuthority::Certificate
+    EXTENSIONS = {"extendedKeyUsage" => {"usage" => %w(serverAuth clientAuth)}}
+
     def initialize(parent)
       super()
 
@@ -45,7 +47,8 @@
 
       self.parent = parent
 
-      sign!
+      sign!("extensions" => EXTENSIONS)
+
     end
 
     def cert