connect-ssl-cert1-test.e 299 B

123456789101112131415161718192021
  1. # ngIRCd test suite
  2. # Server connect test
  3. spawn openssl s_client -quiet -connect 127.0.0.1:6790
  4. expect {
  5. timeout { exit 1 }
  6. "*CN = my.first.domain.tld"
  7. }
  8. sleep 2
  9. send "oper\r"
  10. expect {
  11. timeout { exit 1 }
  12. "451"
  13. }
  14. send "quit\r"
  15. expect {
  16. timeout { exit 1 }
  17. "Connection closed"
  18. }