aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/hostnames.vec
blob: 56433af7bf7471c64799c3d0963f4abc8468c0a3 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Test vectors derived from from RFC 6125 and OpenSSL test suite
# https://github.com/openssl/openssl/blob/master/test/v3nametest.c

Issued = example
Hostname = example

Issued = example.com
Hostname = example.com

Issued = a.example.com
Hostname = a.example.com

Issued = test.www.example.com
Hostname = test.www.example.com

Issued = *.example.com
Hostname = foo.example.com

Issued = baz*.example.net
Hostname = baz1.example.net

Issued = baz*.example.net
Hostname = baz.example.net

Issued = *baz.example.net
Hostname = foobaz.example.net

Issued = *baz.example.net
Hostname = baz.example.net

Issued = b*z.example.net
Hostname = buzz.example.net

Issued = foo*bar.example.net
Hostname = foobar.example.net

Issued = *.www.example.com
Hostname = test.www.example.com

Issued = *www.example.com
Hostname = www.example.com

Issued = fluf*z.example.net
Hostname = flufbaz.example.net

Issued = example.com
Hostname = EXAMPLE.com

Issued = example.com
Hostname = EXAMPLE.COM

Issued = *.example.COM
Hostname = a.EXAMPLE.com

Issued = b*z.example.net
Hostname = bz.example.net

[Invalid]
Issued =
Hostname = empty.com

Issued = empty.com
Hostname =

Issued =
Hostname =

Issued = *
Hostname = *

Issued = *
Hostname = a

Issued = *.com
Hostname = a.com

Issued = *.com
Hostname = x.a.com

# We reject hostnames with ..
Issued = a*..com
Hostname = aninvalidhostname..com

Issued = f.*.com
Hostname = f.a.com

Issued = ample.com
Hostname = example.com

Issued = example.com
Hostname = ample.com

Issued = b*z.example.net
Hostname = foobaz.example.net

Issued = b*z.example.net
Hostname = z.example.net

Issued = flufb*z.example.net
Hostname = foobaz.example.net

Issued = b*z.example.net
Hostname = baz.example.com

Issued = example.com
Hostname = www.example.com

Issued = www.example.com
Hostname = example.com

Issued = bar.*.example.net
Hostname = bar.foo.example.net

Issued = bar.*.example.net
Hostname = bar..example.net

Issued = *.example.com
Hostname = bar.foo.example.com

Issued = *.example.com
Hostname = example.com

Issued = foo*foo.example.com
Hostname = foo.example.com

Issued = foo.exa*ple.com
Hostname = foo.example.com

Issued = exa*ple.com
Hostname = example.com

Issued = **.example.com
Hostname = foo.example.com

Issued = *.*.example.com
Hostname = foo.bar.example.com