/testing/guestbin/swan-prep --x509
Preparing X.509 files
west #
 certutil -d sql:/etc/ipsec.d -D -n east
west #
 ipsec start
Redirecting to: [initsystem]
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec auto --add nss-cert
002 added connection description "nss-cert"
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair suppress-retransmits --impair revival
west #
 # This is expected to fail because remote cert is not yet valid.
west #
 ipsec auto --up nss-cert
1v2 "nss-cert" #1: initiating IKEv2 IKE SA
1v2 "nss-cert" #1: STATE_PARENT_I1: sent v2I1, expected v2R1
1v2 "nss-cert" #2: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "nss-cert" #2: Certificate E=user-notyetvalid@testing.libreswan.org,CN=notyetvalid.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA failed IPsec verification
003 "nss-cert" #2: ERROR: Peer's Certificate has expired.
002 "nss-cert" #2: X509: Certificate rejected for this connection
002 "nss-cert" #2: X509: CERT payload bogus or revoked
036 "nss-cert" #2: encountered fatal error in state STATE_PARENT_I2
west #
 echo done
done
west #
 # only expected to show failure on west
west #
 grep "Certificate rejected" /tmp/pluto.log
"nss-cert" #2: X509: Certificate rejected for this connection
west #
 ../bin/check-for-core.sh
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

