/testing/guestbin/swan-prep --x509
Preparing X.509 files
west #
 ipsec certutil -D -n east
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add ikev2-westnet-eastnet-x509-cr
"ikev2-westnet-eastnet-x509-cr": added IKEv1 connection
west #
 ipsec status | grep idtype
"ikev2-westnet-eastnet-x509-cr":   our idtype: ID_IPV4_ADDR; our id=192.1.2.45; their idtype: ID_FQDN; their id=@right
west #
 ipsec whack --impair suppress_retransmits
west #
 echo "initdone"
initdone
west #
 # expected to fail
west #
 ipsec auto --up ikev2-westnet-eastnet-x509-cr
"ikev2-westnet-eastnet-x509-cr" #1: initiating IKEv1 Main Mode connection
"ikev2-westnet-eastnet-x509-cr" #1: sent Main Mode request
"ikev2-westnet-eastnet-x509-cr" #1: sent Main Mode I2
"ikev2-westnet-eastnet-x509-cr" #1: I am sending my cert
"ikev2-westnet-eastnet-x509-cr" #1: I am sending a certificate request
"ikev2-westnet-eastnet-x509-cr" #1: sent Main Mode I3
"ikev2-westnet-eastnet-x509-cr" #1: Peer ID is ID_FQDN: '@right'
"ikev2-westnet-eastnet-x509-cr" #1: X509: authentication failed; peer certificate contains no subjectAltName extension to match ID_FQDN '@right'
"ikev2-westnet-eastnet-x509-cr" #1: sending encrypted notification INVALID_ID_INFORMATION to 192.1.2.23:500
"ikev2-westnet-eastnet-x509-cr" #1: STATE_MAIN_I3: 60 second timeout exceeded after 0 retransmits.  Possible authentication failure: no acceptable response to our first encrypted message
"ikev2-westnet-eastnet-x509-cr" #1: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"ikev2-westnet-eastnet-x509-cr" #1: deleting ISAKMP SA (MAIN_I3) and NOT sending notification
west #
 echo "done"
done
west #
 
