/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 whack --impair suppress-retransmits
west #
 ipsec auto --add san
002 "san": added IKEv1 connection
west #
 echo "initdone"
initdone
west #
 # this should fail
west #
 ipsec auto --up san
002 "san" #1: initiating IKEv1 Main Mode connection
1v1 "san" #1: sent Main Mode request
1v1 "san" #1: sent Main Mode I2
002 "san" #1: I am sending my cert
002 "san" #1: I am sending a certificate request
1v1 "san" #1: sent Main Mode I3
002 "san" #1: Peer ID is ID_USER_FQDN: 'NOTeast@testing.libreswan.org'
003 "san" #1: X509: authentication failed; peer certificate subjectAltName extension does not match ID_USER_FQDN 'NOTeast@testing.libreswan.org'
218 "san" #1: sending encrypted notification INVALID_ID_INFORMATION to 192.1.2.23:500
031 "san" #1: STATE_MAIN_I3: 10 second timeout exceeded after 0 retransmits.  Possible authentication failure: no acceptable response to our first encrypted message
000 "san" #1: starting keying attempt 2 of an unlimited number, but releasing whack
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_USER_FQDN (0x3)
west #
 
