summaryrefslogtreecommitdiff
path: root/ngircd/src/testsuite/connect-ssl-cert1-test.e
blob: 37abb762458f13f53449b56df66a0603d135e1fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 }
	"ERROR :Closing connection"
}