/testing/guestbin/swan-prep --x509
Preparing X.509 files
west #
 certutil -D -n east -d sql:/etc/ipsec.d
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add san
002 "san": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair suppress-retransmits
west #
 # this should fail
west #
 ipsec auto --up san
1v2 "san" #1: initiating IKEv2 connection
1v2 "san" #1: sent IKE_SA_INIT request
1v2 "san" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "san" #1: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED
036 "san" #1: encountered fatal error in state STATE_V2_PARENT_I2
002 "san" #1: deleting state (STATE_V2_PARENT_I2) and NOT sending notification
002 "san" #1: deleting IKE SA but connection is supposed to remain up; schedule EVENT_REVIVE_CONNS
west #
 echo "done"
done
west #
 # confirm the right ID types were sent/received
west #
 grep "ID type" /tmp/pluto.log | sort | uniq
|    ID type: ID_IPV4_ADDR (0x1)
west #
 
