Debian Codegraph @

testing/pluto/ikev2-x509-37-fakeeast-westrsa/west.console.txt

raw
1 /testing/guestbin/swan-prep --nokeys
2 Creating empty NSS database
3 west #
4 # import real west+mainca
5 west #
6 /testing/x509/import.sh real/mainca/west.all.p12
7 ipsec pk12util -w nss-pw -i real/mainca/west.all.p12
8 pk12util: PKCS12 IMPORT SUCCESSFUL
9 ipsec certutil -M -n mainca -t CT,,
10 west #
11 # confirm
12 west #
13 ipsec certutil -L
14 Certificate Nickname Trust Attributes
15 SSL,S/MIME,JAR/XPI
16 west u,u,u
17 mainca CT,,
18 west #
19 # confirm that the network is alive
20 west #
21 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
22 destination -I 192.0.1.254 192.0.2.254 is alive
23 west #
24 # ensure that clear text does not get through
25 west #
26 iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
27 west #
28 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
29 west #
30 # confirm clear text does not get through
31 west #
32 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
33 down
34 west #
35 ipsec start
36 Redirecting to: [initsystem]
37 west #
38 ../../guestbin/wait-until-pluto-started
39 west #
40 ipsec auto --add ikev2-westnet-eastnet-x509-cr
41 "ikev2-westnet-eastnet-x509-cr": added IKEv2 connection
42 west #
43 ipsec whack --impair suppress_retransmits
44 west #
45 echo "initdone"
46 initdone
47 west #
48 ipsec whack --impair revival
49 west #
50 ipsec auto --up ikev2-westnet-eastnet-x509-cr
51 "ikev2-westnet-eastnet-x509-cr" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
52 "ikev2-westnet-eastnet-x509-cr" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
53 "ikev2-westnet-eastnet-x509-cr" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
54 "ikev2-westnet-eastnet-x509-cr" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
55 "ikev2-westnet-eastnet-x509-cr" #1: NSS: ERROR: IPsec certificate [email protected],CN=Libreswan test CA for mainca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA invalid: SEC_ERROR_BAD_SIGNATURE: Peer's certificate has an invalid signature.
56 "ikev2-westnet-eastnet-x509-cr" #1: X509: certificate payload rejected for this connection
57 "ikev2-westnet-eastnet-x509-cr" #1: encountered fatal error in state IKE_AUTH_I
58 "ikev2-westnet-eastnet-x509-cr" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
59 "ikev2-westnet-eastnet-x509-cr" #2: IMPAIR: revival: skip scheduling revival event
60 "ikev2-westnet-eastnet-x509-cr" #1: deleting IKE SA (sent IKE_AUTH request)
61 west #
62 echo "done"
63 done
64 west #
65 ../../guestbin/ipsec-kernel-state.sh
66 west #
67 ../../guestbin/ipsec-kernel-policy.sh
68 west #
69