/testing/guestbin/swan-prep --x509
Preparing X.509 files
west #
 certutil -d sql:/etc/ipsec.d -D -n east
west #
 ipsec start
Redirecting to: systemctl start ipsec.service
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
west #
 # This is expected to fail because remote cert is not yet valid.
west #
 # It should return whack but it does not?
west #
 ipsec auto --up nss-cert
002 "nss-cert" #1: initiating v2 parent SA
1v2 "nss-cert" #1: initiate
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=testing@libreswan.org,CN=notyetvalid.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA failed verification
003 "nss-cert" #2: ERROR: Peer's Certificate has expired.
002 "nss-cert" #2: IKEv2 mode peer ID is ID_DER_ASN1_DN: 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=notyetvalid.testing.libreswan.org, E=testing@libreswan.org'
003 "nss-cert" #2: no RSA public key known for 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=notyetvalid.testing.libreswan.org, E=testing@libreswan.org'
002 "nss-cert" #2: RSA authentication failed
224 "nss-cert" #2: STATE_PARENT_I2: v2N_AUTHENTICATION_FAILED
003 "nss-cert" #2: EXPECTATION FAILED: st != NULL && st->st_event != NULL && st->st_event->ev_type == EVENT_RETRANSMIT (in complete_v2_state_transition at /source/programs/pluto/ikev2.c:1827)
west #
 echo done
done
west #
 # only expected to show failure on west
west #
 grep "ERROR" /tmp/pluto.log
"nss-cert" #2: ERROR: Peer's Certificate has expired.
west #
west #
 ../bin/check-for-core.sh
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

