Debian Codegraph @

testing/pluto/nss-cert-11-ca-expired-responder-1conn-ikev2/west.console.txt

raw
1 /testing/guestbin/swan-prep --nokeys
2 Creating empty NSS database
3 west #
4 # Generate west's CA and then use that to generate a signed
5 west #
6 # cert+private-key that east can present when authenticating. All
7 west #
8 # dates for these certs are sane.
9 west #
10 ipsec certutil -m 1 -S -k rsa -x -n west-ca -s "CN=west-ca" -v 12 -t "CT,C,C" -z ipsec.conf
11 Generating key. This may take a few moments...
12 west #
13 ipsec certutil -m 2 -S -k rsa -c west-ca -n east -s "CN=east" -v 12 -t "u,u,u" -z ipsec.conf
14 Generating key. This may take a few moments...
15 Notice: Trust flag u is set automatically if the private key is present.
16 west #
17 ipsec pk12util -W secret -o OUTPUT/east.p12 -n east
18 pk12util: PKCS12 EXPORT SUCCESSFUL
19 west #
20 ipsec certutil -L -n east -a > OUTPUT/east.crt
21 west #
22 ipsec certutil -F -n east
23 west #
24 # Import the old and new certificates
25 west #
26 ipsec pk12util -i OUTPUT/new-west.p12 -W secret
27 pk12util: PKCS12 IMPORT SUCCESSFUL
28 west #
29 ipsec pk12util -i OUTPUT/old-west.p12 -W secret
30 pk12util: PKCS12 IMPORT SUCCESSFUL
31 west #
32 # now get going
33 west #
34 ipsec start
35 Redirecting to: [initsystem]
36 west #
37 ../../guestbin/wait-until-pluto-started
38 west #
39 ipsec whack --impair revival
40 west #
41 ipsec auto --add old-west
42 "old-west": added IKEv2 connection
43 west #
44 ipsec auto --add new-west
45 "new-west": added IKEv2 connection
46 west #
47 # out with the old
48 west #
49 ipsec auto --up new-west
50 "new-west" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
51 "new-west" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
52 "new-west" #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
53 "new-west" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
54 "new-west" #1: initiator established IKE SA; authenticated peer certificate 'CN=east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'CN=west-ca'
55 "new-west" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
56 west #
57 ipsec auto --delete new-west
58 "new-west": terminating SAs using this connection
59 "new-west" #1: deleting IKE SA (ESTABLISHED_IKE_SA) and sending notification
60 "new-west" #2: ESP traffic information: in=0B out=0B
61 west #
62 # in with the new
63 west #
64 ipsec auto --up old-west
65 "old-west" #3: initiating IKEv2 connection to 192.1.2.23 using UDP
66 "old-west" #3: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
67 "old-west" #3: 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
68 "old-west" #3: sent IKE_AUTH request to 192.1.2.23:UDP/500
69 "old-west" #3: initiator established IKE SA; authenticated peer certificate 'CN=east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'CN=west-ca'
70 "old-west" #4: initiator established Child SA using #3; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
71 west #
72