Skip to content

Commit 125ab88

Browse files
committed
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.
1 parent 6661727 commit 125ab88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def issue_cert(dn, key, serial, extensions, issuer, issuer_key,
6767
cert.serial = serial
6868
cert.subject = dn
6969
cert.issuer = issuer.subject
70-
cert.public_key = key.public_key
70+
cert.public_key = key
7171
now = Time.now
7272
cert.not_before = not_before || now - 3600
7373
cert.not_after = not_after || now + 3600

0 commit comments

Comments
 (0)