/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 --debug-all --impair 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
002 "san" #1: IMPAIR RETRANSMITS: scheduling timeout in 0.5 seconds
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: ID_DER_ASN1_DN 'E=user-east@testing.libreswan.org,CN=east.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA' does not match expected 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=NOTeast.testing.libreswan.org, E=user-east@testing.libreswan.org'
002 "san" #1: Peer public key SubjectAltName does not match peer ID for this connection
002 "san" #1: X509: CERT payload does not match connection ID
003 "san" #1: initial Aggressive Mode packet claiming to be from C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=NOTeast.testing.libreswan.org, E=user-east@testing.libreswan.org on 192.1.2.23 but no connection has been authorized
218 "san" #1: STATE_AGGR_I1: INVALID_ID_INFORMATION
002 "san" #1: sending notification INVALID_ID_INFORMATION to 192.1.2.23:500
002 "san" #1: suppressing retransmit because IMPAIR_RETRANSMITS is set
002 "san" #1: IMPAIR RETRANSMITS: suppressing re-key
002 "san" #1: deleting state (STATE_AGGR_I1)
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)
west #
west #
 ../bin/check-for-core.sh
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

