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