/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 /testing/x509/import.sh real/mainca/west.p12
 ipsec pk12util -w nss-pw -i real/mainca/west.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
 ipsec certutil -M -n mainca -t CT,,
 ipsec certutil -O -n west
"mainca" [E=testing@libreswan.org,CN=Libreswan test CA for mainca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
  "west" [E=user-west@testing.libreswan.org,CN=west.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add nss-cert
"nss-cert": added IKEv1 connection
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair revival
west #
 # This is expected to fail because remote cert is not yet valid.
west #
 ipsec auto --up nss-cert
"nss-cert" #1: initiating IKEv1 Main Mode connection
"nss-cert" #1: sent Main Mode request
"nss-cert" #1: sent Main Mode I2
"nss-cert" #1: I am sending my cert
"nss-cert" #1: I am sending a certificate request
"nss-cert" #1: sent Main Mode I3
"nss-cert" #1: NSS: ERROR: IPsec certificate CN=east-notyetvalid invalid: SEC_ERROR_EXPIRED_CERTIFICATE: Peer's Certificate has expired.
"nss-cert" #1: X509: certificate rejected for this connection
"nss-cert" #1: X509: CERT payload bogus or revoked
"nss-cert" #1: sending encrypted notification INVALID_ID_INFORMATION to 192.1.2.23:500
"nss-cert" #1: STATE_MAIN_I3: 60 second timeout exceeded after 0 retransmits.  Possible authentication failure: no acceptable response to our first encrypted message
"nss-cert" #1: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"nss-cert" #1: IMPAIR: revival: skip scheduling revival event
"nss-cert" #1: deleting ISAKMP SA (MAIN_I3) and NOT sending notification
west #
 echo done
done
west #
 # only expected to show failure on west
west #
 grep -e '^[^|].*ERROR' /tmp/pluto.log
"nss-cert" #1: NSS: ERROR: IPsec certificate CN=east-notyetvalid invalid: SEC_ERROR_EXPIRED_CERTIFICATE: Peer's Certificate has expired.
west #
