test3001 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTPS
  5. HTTP GET
  6. PEM certificate
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 7
  17. MooMoo
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <features>
  24. SSL
  25. </features>
  26. <server>
  27. https Server-localhost-lastSAN-sv.pem
  28. </server>
  29. <name>
  30. HTTPS GET to localhost, last subject alt name matches, CN does not match
  31. </name>
  32. <command>
  33. --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt https://localhost:%HTTPSPORT/%TESTNUMBER
  34. </command>
  35. # Ensure that we're running on localhost because we're checking the host name
  36. <precheck>
  37. perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
  38. </precheck>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. GET /%TESTNUMBER HTTP/1.1
  45. Host: localhost:%HTTPSPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. </protocol>
  49. </verify>
  50. </testcase>