/testing/guestbin/swan-prep --x509
Preparing X.509 files
west #
 certutil -D -n east -d sql:/etc/ipsec.d
west #
 ipsec start
Redirecting to: systemctl start ipsec.service
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec auto --add san
002 added connection description "san"
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair suppress-retransmits
west #
 # this should fail
west #
 ipsec auto --up san
002 "san" #1: initiating v2 parent SA
133 "san" #1: initiate
133 "san" #1: STATE_PARENT_I1: sent v2I1, expected v2R1
002 "san" #1: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds
134 "san" #2: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
002 "san" #2: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds
002 "san" #2: certificate verified OK: E=user-east@testing.libreswan.org,CN=east.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA
003 "san" #2: No matching subjectAltName found
003 "san" #2: certificate does not contain ID_IP subjectAltName=192.1.2.123
002 "san" #2: Peer public key SubjectAltName does not match peer ID for this connection
002 "san" #2: X509: CERT payload does not match connection ID
224 "san" #2: STATE_PARENT_I2: v2N_AUTHENTICATION_FAILED
002 "san" #2: deleting other state #2 (STATE_PARENT_I2) and NOT sending notification
002 "san" #1: deleting state (STATE_PARENT_I2) and NOT sending notification
west #
 echo "done"
done
west #
 # confirm the right ID types were sent/received
west #
 grep "ID type" /tmp/pluto.log
|    ID type: ID_IPV4_ADDR (0x1)
|    ID type: ID_IPV4_ADDR (0x1)
west #
west #
 ../bin/check-for-core.sh
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

