summaryrefslogtreecommitdiffstats
path: root/test/utils.rb
diff options
context:
space:
mode:
authorBen Toews <mastahyeti@gmail.com>2018-08-16 10:14:10 -0600
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-10-01 11:25:06 +1300
commit94b65845022fe9abf0ba4a69faeedee6030f5770 (patch)
treec046cc837d367a16f30f2e4b98709c6022bbba26 /test/utils.rb
parente703917755b43501452297ce019c1a567a0ca3be (diff)
downloadruby-openssl-94b65845022fe9abf0ba4a69faeedee6030f5770.tar.gz
ts: address more feedback
Diffstat (limited to 'test/utils.rb')
-rw-r--r--test/utils.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/utils.rb b/test/utils.rb
index 87403295..dc24cbe2 100644
--- a/test/utils.rb
+++ b/test/utils.rb
@@ -332,7 +332,6 @@ module OpenSSL::Certs
def ca_cert
ca = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=Timestamp Root CA")
- now = Time.now
ca_exts = [
["basicConstraints","CA:TRUE,pathlen:1",true],
["keyUsage","keyCertSign, cRLSign",true],
@@ -345,7 +344,6 @@ module OpenSSL::Certs
def ts_cert_direct(key, ca_cert)
dn = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/OU=Timestamp/CN=Server Direct")
- now = Time.now
exts = [
["basicConstraints","CA:FALSE",true],
["keyUsage","digitalSignature, nonRepudiation", true],
@@ -360,7 +358,6 @@ module OpenSSL::Certs
def intermediate_cert(key, ca_cert)
dn = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/OU=Timestamp/CN=Timestamp Intermediate CA")
- now = Time.now
exts = [
["basicConstraints","CA:TRUE,pathlen:0",true],
["keyUsage","keyCertSign, cRLSign",true],
@@ -374,7 +371,6 @@ module OpenSSL::Certs
def ts_cert_ee(key, intermediate, im_key)
dn = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/OU=Timestamp/CN=Server End Entity")
- now = Time.now
exts = [
["keyUsage","digitalSignature, nonRepudiation", true],
["subjectKeyIdentifier", "hash",false],