test320 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTPS
  5. HTTP GET
  6. TLS-SRP
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.0 200 OK
  13. Content-type: text/html
  14. <HTML><BODY>
  15. <CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GnuTLS</a></H1></CENTER>
  16. <p>Session ID: <i>003030000100000001000000000000000030330001000000B062410001000000</i></p>
  17. <h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5>
  18. <p>Connected as user 'jsmith'.</p>
  19. <P>
  20. <TABLE border=1><TR><TD>Protocol version:</TD><TD>TLS1.2</TD></TR>
  21. <TR><TD>Key Exchange:</TD><TD>SRP</TD></TR>
  22. <TR><TD>Compression</TD><TD>NULL</TD></TR>
  23. <TR><TD>Cipher</TD><TD>AES-NNN-CBC</TD></TR>
  24. <TR><TD>MAC</TD><TD>SHA1</TD></TR>
  25. <TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_NNN_CBC_SHA1</TD></TR></p></TABLE>
  26. <hr><P>Your HTTP header was:<PRE>User-Agent: curl/7.21.4-DEV (x86_64-apple-darwin10.5.0) libcurl/7.21.4-DEV GnuTLS/2.10.4 zlib/1.2.5 libidn/1.19
  27. Host: localhost:9011
  28. Accept: */*
  29. </PRE></P>
  30. </BODY></HTML>
  31. </data>
  32. </reply>
  33. # Client-side
  34. <client>
  35. <server>
  36. httptls+srp
  37. </server>
  38. <features>
  39. TLS-SRP
  40. </features>
  41. <name>
  42. simple TLS-SRP HTTPS GET, check user in response
  43. </name>
  44. <command>
  45. --insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword abc https://%HOSTIP:%HTTPTLSPORT
  46. </command>
  47. </client>
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. <protocol>
  51. </protocol>
  52. <file name="log/curl320.out" mode="text">
  53. HTTP/1.0 200 OK
  54. Content-type: text/html
  55. <HTML><BODY>
  56. <CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GnuTLS</a></H1></CENTER>
  57. <h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5>
  58. <p>Connected as user 'jsmith'.</p>
  59. <P>
  60. <TABLE border=1><TR><TD></TD></TR>
  61. <TR><TD>Key Exchange:</TD><TD>SRP</TD></TR>
  62. <TR><TD>Compression</TD><TD>NULL</TD></TR>
  63. <TR><TD>Cipher</TD><TD>AES-NNN-CBC</TD></TR>
  64. <TR><TD>MAC</TD><TD>SHA1</TD></TR>
  65. <TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_NNN_CBC_SHA1</TD></TR></p></TABLE>
  66. <PRE>
  67. Host: %HOSTIP:%HTTPTLSPORT
  68. Accept: */*
  69. </PRE></P>
  70. </BODY></HTML>
  71. </file>
  72. <stripfile>
  73. s/^<p>Session ID:.*//
  74. s/^<hr><P>Your HTTP header was:<PRE>.*/<PRE>/
  75. s/Protocol version:.*[0-9]//
  76. s/GNUTLS/GnuTLS/
  77. s/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/
  78. </stripfile>
  79. </verify>
  80. </testcase>