/testing/guestbin/swan-prep --x509
Preparing X.509 files
west #
 ipsec certutil -D -n "Libreswan test CA for mainca - Libreswan"
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-x509
"westnet-eastnet-x509": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 # expected to fail
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec auto --up westnet-eastnet-x509
"westnet-eastnet-x509" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"westnet-eastnet-x509" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"westnet-eastnet-x509" #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
"westnet-eastnet-x509" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"westnet-eastnet-x509" #1: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED
"westnet-eastnet-x509" #1: scheduling retry attempt 1 of an unlimited number, but releasing whack
west #
 echo done
done
west #
 # should confirm failure
west #
 hostname | grep east && grep "Signature check" /tmp/pluto.log
west #
 
