Version bump to 5.9.8rc1
[strongswan.git] / testing / tests / sql / rw-eap-aka-rsa / hosts / moon / etc / ipsec.d / data.sql.in
1 /* Identities */
2
3 INSERT INTO identities (
4 type, data
5 ) VALUES ( /* C=CH, O=strongSwan Project, CN=strongSwan Root CA */
6 9, X'3047310b3009060355040613024348311b3019060355040a13127374726f6e675377616e2050726f6a656374311b3019060355040313127374726f6e675377616e20526f6f74204341'
7 );
8
9 INSERT INTO identities (
10 type, data
11 ) VALUES ( /* subjkey of 'C=CH, O=strongSwan Project, CN=strongSwan Root CA' */
12 11, X'CA_SPK_HEX'
13 );
14
15 INSERT INTO identities (
16 type, data
17 ) VALUES ( /* keyid of 'C=CH, O=strongSwan Project, CN=strongSwan Root CA' */
18 11, X'CA_SPKI_HEX'
19 );
20
21 INSERT INTO identities (
22 type, data
23 ) VALUES ( /* moon.strongswan.org */
24 2, X'6d6f6f6e2e7374726f6e677377616e2e6f7267'
25 );
26
27 INSERT INTO identities (
28 type, data
29 ) VALUES ( /* subjkey of 'C=CH, O=Linux strongSwan, CN=moon.strongswan.org' */
30 11, X'MOON_SPK_HEX'
31 );
32
33 INSERT INTO identities (
34 type, data
35 ) VALUES ( /* %any */
36 0, X''
37 );
38
39 INSERT INTO identities (
40 type, data
41 ) VALUES ( /* carol@strongswan.org */
42 3, X'6361726f6c407374726f6e677377616e2e6f7267'
43 );
44
45 /* Certificates */
46
47 INSERT INTO certificates (
48 type, keytype, data
49 ) VALUES ( /* C=CH, O=Linux strongSwan, CN=strongSwan Root CA */
50 1, 1, X'CA_CERT_HEX'
51 );
52
53 INSERT INTO certificates (
54 type, keytype, data
55 ) VALUES ( /* C=CH, O=Linux strongSwan, CN=moon.strongswan.org */
56 1, 1, X'MOON_CERT_HEX'
57 );
58
59 INSERT INTO certificate_identity (
60 certificate, identity
61 ) VALUES (
62 1, 1
63 );
64
65 INSERT INTO certificate_identity (
66 certificate, identity
67 ) VALUES (
68 1, 2
69 );
70
71 INSERT INTO certificate_identity (
72 certificate, identity
73 ) VALUES (
74 1, 3
75 );
76
77 INSERT INTO certificate_identity (
78 certificate, identity
79 ) VALUES (
80 2, 3
81 );
82
83 INSERT INTO certificate_identity (
84 certificate, identity
85 ) VALUES (
86 2, 4
87 );
88
89 /* Private Keys */
90
91 INSERT INTO private_keys (
92 type, data
93 ) VALUES ( /* key of 'C=CH, O=Linux strongSwan, CN=moon.strongswan.org' */
94 1, X'MOON_KEY_HEX'
95 );
96
97 INSERT INTO private_key_identity (
98 private_key, identity
99 ) VALUES (
100 1, 4
101 );
102
103 INSERT INTO private_key_identity (
104 private_key, identity
105 ) VALUES (
106 1, 5
107 );
108
109 /* Shared Secrets */
110
111 INSERT INTO shared_secrets (
112 type, data
113 ) VALUES (
114 2, X'4172336574546e703031716c704f6762'
115 );
116
117 INSERT INTO shared_secret_identity (
118 shared_secret, identity
119 ) VALUES (
120 1, 4
121 );
122
123 INSERT INTO shared_secret_identity (
124 shared_secret, identity
125 ) VALUES (
126 1, 7
127 );
128
129 /* Configurations */
130
131 INSERT INTO ike_configs (
132 local, remote, certreq
133 ) VALUES (
134 'PH_IP_MOON', '0.0.0.0', 0
135 );
136
137 INSERT INTO peer_configs (
138 name, ike_cfg, local_id, remote_id, eap_type
139 ) VALUES (
140 'rw-eap-aka', 1, 4, 6, 23
141 );
142
143 INSERT INTO child_configs (
144 name, updown
145 ) VALUES (
146 'rw-eap-aka', '/usr/local/libexec/ipsec/_updown iptables'
147 );
148
149 INSERT INTO peer_config_child_config (
150 peer_cfg, child_cfg
151 ) VALUES (
152 1, 1
153 );
154
155 INSERT INTO traffic_selectors (
156 type, start_addr, end_addr
157 ) VALUES ( /* 10.1.0.0/16 */
158 7, X'0a010000', X'0a01ffff'
159 );
160
161 INSERT INTO traffic_selectors (
162 type
163 ) VALUES ( /* dynamic/32 */
164 7
165 );
166
167 INSERT INTO child_config_traffic_selector (
168 child_cfg, traffic_selector, kind
169 ) VALUES (
170 1, 1, 0
171 );
172
173 INSERT INTO child_config_traffic_selector (
174 child_cfg, traffic_selector, kind
175 ) VALUES (
176 1, 2, 3
177 );
178