1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-10-11 12:47:40 +00:00
Files
ngircd/src/testsuite/connect-ssl-cert1-test.e
Alexander Barton 21f33e5911 SSL test server: Use port 6790, like "test server #2"
Don't use the "standard" IRC SSL port 6697, as this easily collides with
real (ng)IRCd instances running on the same machine.

And by reusing port 6790, which is already used by the "test server #2",
we don't need any other port than the test suite already uses.
2020-05-07 00:02:00 +02:00

22 lines
299 B
Plaintext

# ngIRCd test suite
# Server connect test
spawn openssl s_client -quiet -connect 127.0.0.1:6790
expect {
timeout { exit 1 }
"*CN = my.first.domain.tld"
}
sleep 2
send "oper\r"
expect {
timeout { exit 1 }
"451"
}
send "quit\r"
expect {
timeout { exit 1 }
"Connection closed"
}