aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-02-07 17:24:45 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-11-22 09:32:27 +0900
commit125ab881c6ded7b9d9a122471ce128e29eee16b4 (patch)
tree41fe0a1ab4ed7a3b1d3c615a68062862b5c662c5 /test
parent66617279484cc2c5e67c4f9c9fdc54b2968cb711 (diff)
downloadruby-openssl-125ab881c6ded7b9d9a122471ce128e29eee16b4.tar.gz
test/utils: remove a pointless .public_key call in issue_cert
PKey::EC#public_key works differently from other PKey types, making TestUtils.issue_cert unusable for creating ECDSA certificates. Actually, the #public_key does not have any effect on any other PKey types. So just remove it.
Diffstat (limited to 'test')
-rw-r--r--test/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils.rb b/test/utils.rb
index f59d53b0..a3599490 100644
--- a/test/utils.rb
+++ b/test/utils.rb
@@ -67,7 +67,7 @@ module OpenSSL::TestUtils
cert.serial = serial
cert.subject = dn
cert.issuer = issuer.subject
- cert.public_key = key.public_key
+ cert.public_key = key
now = Time.now
cert.not_before = not_before || now - 3600
cert.not_after = not_after || now + 3600