/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 #
 # we cannot set impair retransmits, as strongswan attempts to get OCSP/CRL
west #
 # which takes longer then our Quick Mode msg.
west #
 #ipsec whack --impair suppress-retransmits
west #
 # this should succeed
west #
 ipsec auto --up san
002 "san" #1: initiating Aggressive Mode
002 "san" #1: I am sending a certificate request
112 "san" #1: STATE_AGGR_I1: initiate
002 "san" #1: Peer ID is ID_DER_ASN1_DN: 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org'
002 "san" #1: 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" #1: Authenticated using RSA
002 "san" #1: I am sending my cert
004 "san" #1: STATE_AGGR_I2: sent AI2, ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP1536}
002 "san" #2: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS+UP+AGGRESSIVE+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO
117 "san" #2: STATE_QUICK_I1: initiate
010 "san" #2: STATE_QUICK_I1: retransmission; will wait 0.5 seconds for response
010 "san" #2: STATE_QUICK_I1: retransmission; will wait 1 seconds for response
010 "san" #2: STATE_QUICK_I1: retransmission; will wait 2 seconds for response
010 "san" #2: STATE_QUICK_I1: retransmission; will wait 4 seconds for response
004 "san" #2: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive}
west #
 echo "done"
done
west #
 # confirm the right ID types were sent/received
west #
 grep "ID type" /tmp/pluto.log
|    ID type: ID_DER_ASN1_DN (0x9)
|    ID type: ID_DER_ASN1_DN (0x9)
|    ID type: ID_DER_ASN1_DN (0x9)
|    ID type: ID_IPV4_ADDR (0x1)
|    ID type: ID_IPV4_ADDR (0x1)
|    ID type: ID_DER_ASN1_DN (0x9)
west #
west #
 ../bin/check-for-core.sh
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

