Although this is a nice looking solution, it is not that portable: for
example, the "openssl s_client" command of LibreSSL 3.8.2 on OpenBSD 7.4
does not support it.
So let's revert back to the "uglier" but working variant ...
This reverts commit
bdb55fb4b322b2c84530855a3b5148a0e387f5b4.
# ngIRCd test suite
# Server connect test
-spawn openssl s_client -quiet -nameopt utf8,space_eq -connect 127.0.0.1:6790
+spawn openssl s_client -quiet -connect 127.0.0.1:6790
expect {
timeout { exit 1 }
- "*CN = my.first.domain.tld"
+ "*CN*=*my.first.domain.tld"
}
sleep 2
# ngIRCd test suite
# Server connect test
-spawn openssl s_client -quiet -nameopt utf8,space_eq -connect 127.0.0.1:6790
+spawn openssl s_client -quiet -connect 127.0.0.1:6790
expect {
timeout { exit 1 }
- "*CN = my.second.domain.tld"
+ "*CN*=*my.second.domain.tld"
}
sleep 2