test3001 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. !Schannel
  26. </features>
  27. <server>
  28. https Server-localhost-lastSAN-sv.pem
  29. </server>
  30. <name>
  31. HTTPS GET to localhost, last subject alt name matches, CN does not match
  32. </name>
  33. <command>
  34. --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt https://localhost:%HTTPSPORT/%TESTNUMBER
  35. </command>
  36. # Ensure that we're running on localhost because we're checking the host name
  37. <precheck>
  38. perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
  39. </precheck>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <protocol>
  45. GET /%TESTNUMBER HTTP/1.1
  46. Host: localhost:%HTTPSPORT
  47. User-Agent: curl/%VERSION
  48. Accept: */*
  49. </protocol>
  50. </verify>
  51. </testcase>