From 125ab881c6ded7b9d9a122471ce128e29eee16b4 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Tue, 7 Feb 2017 17:24:45 +0900 Subject: 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. --- test/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3