Skip to content

Commit 558cfbe

Browse files
committed
test/openssl/test_ssl: fix illegal SAN extension
A certificate can only have one SubjectAltName extension. OpenSSL 3.0 performs a stricter validation and certificates containing multiple SANs will be rejected.
1 parent 998406d commit 558cfbe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/openssl/test_ssl.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,7 @@ def test_post_connection_check
593593

594594
exts = [
595595
["keyUsage","keyEncipherment,digitalSignature",true],
596-
["subjectAltName","DNS:localhost.localdomain",false],
597-
["subjectAltName","IP:127.0.0.1",false],
596+
["subjectAltName","DNS:localhost.localdomain,IP:127.0.0.1",false],
598597
]
599598
@svr_cert = issue_cert(@svr, @svr_key, 4, exts, @ca_cert, @ca_key)
600599
start_server { |port|

0 commit comments

Comments
 (0)