add-missing-x509v3-extensions-in-spec 416 Bytes
Newer Older
1 2
--- a/spec/support/ssl_helper.rb
+++ b/spec/support/ssl_helper.rb
3
@@ -35,6 +35,8 @@
4 5 6 7 8 9 10 11
   end
 
   class ChildCertificate < ::CertificateAuthority::Certificate
+    EXTENSIONS = {"extendedKeyUsage" => {"usage" => %w(serverAuth clientAuth)}}
+
     def initialize(parent)
       super()
 
12
@@ -45,7 +47,8 @@
13 14 15 16 17 18 19 20 21
 
       self.parent = parent
 
-      sign!
+      sign!("extensions" => EXTENSIONS)
+
     end
 
     def cert