summaryrefslogtreecommitdiff
path: root/curl/tests/https.testscript
blob: 6703b72a0d589f2e841c57e9396b55df54a97b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# file      : tests/https.testscript
# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
# license   : cURL License; see accompanying COPYING file
#\
: default
:
{
  test.options += -sS

  $* 'http://www.example.com' | set s;
  $* 'https://www.example.com' >"$s"
}

: override
:
: Specify the empty CA certificates bundle on the command line and make sure
: curl exits with the 'peer certificate cannot be authenticated with known CA
: certificates' exit code.
:
{
  $* -s 'https://www.example.com' --capath "$src_base/empty.pem" == 60
}
#\

: verbose
:
{
  $* -v 'https://www.example.com' >! 2>&1
}