/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 #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add nss-cert
002 "nss-cert": added IKEv1 connection
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair delete-on-retransmit
west #
 ipsec whack --impair revival
west #
 # This is expected to fail because remote cert is not yet valid.
west #
 ipsec auto --up nss-cert
002 "nss-cert" #1: initiating IKEv1 Main Mode connection
1v1 "nss-cert" #1: sent Main Mode request
1v1 "nss-cert" #1: sent Main Mode I2
002 "nss-cert" #1: I am sending my cert
002 "nss-cert" #1: I am sending a certificate request
1v1 "nss-cert" #1: sent Main Mode I3
003 "nss-cert" #1: NSS: ERROR: IPsec certificate E=user-notyetvalid@testing.libreswan.org,CN=notyetvalid.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA invalid: SEC_ERROR_EXPIRED_CERTIFICATE: Peer's Certificate has expired.
002 "nss-cert" #1: X509: certificate rejected for this connection
002 "nss-cert" #1: X509: CERT payload bogus or revoked
218 "nss-cert" #1: sending encrypted notification INVALID_ID_INFORMATION to 192.1.2.23:500
002 "nss-cert" #1: IMPAIR: retransmit so deleting SA
002 "nss-cert" #1: deleting state (STATE_MAIN_I3) and NOT sending notification
002 "nss-cert" #1: IMPAIR: skipping revival of connection that is supposed to remain up
west #
 echo done
done
west #
 # only expected to show failure on west
west #
 grep "ERROR" /tmp/pluto.log
"nss-cert" #1: NSS: ERROR: IPsec certificate E=user-notyetvalid@testing.libreswan.org,CN=notyetvalid.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA invalid: SEC_ERROR_EXPIRED_CERTIFICATE: Peer's Certificate has expired.
west #
 
