| 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 |
ipsec pk12util -i OUTPUT/hog-west.p12 -W secret |
| 33 |
pk12util: PKCS12 IMPORT SUCCESSFUL |
| 34 |
west # |
| 35 |
# now get going |
| 36 |
west # |
| 37 |
ipsec start |
| 38 |
Redirecting to: [initsystem] |
| 39 |
west # |
| 40 |
../../guestbin/wait-until-pluto-started |
| 41 |
west # |
| 42 |
ipsec whack --impair suppress_retransmits |
| 43 |
west # |
| 44 |
ipsec auto --add old-west |
| 45 |
"old-west": added IKEv2 connection |
| 46 |
west # |
| 47 |
ipsec auto --add new-west |
| 48 |
"new-west": added IKEv2 connection |
| 49 |
west # |
| 50 |
ipsec auto --add hog-west |
| 51 |
"hog-west": added IKEv2 connection |
| 52 |
west # |
| 53 |
ipsec auto --up old-west |
| 54 |
"old-west" #1: initiating IKEv2 connection to 192.1.2.23 using UDP |
| 55 |
"old-west" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 |
| 56 |
"old-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 |
| 57 |
"old-west" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 |
| 58 |
"old-west" #1: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED |
| 59 |
"old-west" #1: encountered fatal error in state IKE_AUTH_I |
| 60 |
"old-west" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds |
| 61 |
"old-west" #1: deleting IKE SA (sent IKE_AUTH request) |
| 62 |
west # |
| 63 |
ipsec auto --down old-west |
| 64 |
"old-west" #3: deleting IKE SA (sent IKE_SA_INIT request) |
| 65 |
west # |
| 66 |
ipsec auto --up new-west |
| 67 |
"new-west" #4: initiating IKEv2 connection to 192.1.2.23 using UDP |
| 68 |
"new-west" #4: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 |
| 69 |
"new-west" #4: 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 |
| 70 |
"new-west" #4: sent IKE_AUTH request to 192.1.2.23:UDP/500 |
| 71 |
"new-west" #4: initiator established IKE SA; authenticated peer certificate 'CN=east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'CN=west-ca' |
| 72 |
"new-west" #5: initiator established Child SA using #4; IPsec tunnel [192.0.2.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive} |
| 73 |
west # |
| 74 |
ipsec auto --down new-west |
| 75 |
"new-west": initiating delete of connection's IKE SA #4 (and Child SA #5) |
| 76 |
"new-west" #4: sent INFORMATIONAL request to delete IKE SA |
| 77 |
"new-west" #5: ESP traffic information: in=0B out=0B |
| 78 |
"new-west" #4: deleting IKE SA (established IKE SA) |
| 79 |
west # |
| 80 |
ipsec auto --up hog-west |
| 81 |
"hog-west" #6: initiating IKEv2 connection to 192.1.2.23 using UDP |
| 82 |
"hog-west" #6: sent IKE_SA_INIT request to 192.1.2.23:UDP/500 |
| 83 |
"hog-west" #6: 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 |
| 84 |
"hog-west" #6: sent IKE_AUTH request to 192.1.2.23:UDP/500 |
| 85 |
"hog-west" #6: initiator established IKE SA; authenticated peer certificate 'CN=east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'CN=west-ca' |
| 86 |
"hog-west" #7: initiator established Child SA using #6; IPsec tunnel [192.0.3.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive} |
| 87 |
west # |
| 88 |
ipsec auto --down hog-west |
| 89 |
"hog-west": initiating delete of connection's IKE SA #6 (and Child SA #7) |
| 90 |
"hog-west" #6: sent INFORMATIONAL request to delete IKE SA |
| 91 |
"hog-west" #7: ESP traffic information: in=0B out=0B |
| 92 |
"hog-west" #6: deleting IKE SA (established IKE SA) |
| 93 |
west # |
| 94 |
|