/testing/guestbin/swan-prep --x509 --x509name notyetvalid
Preparing X.509 files
west #
 ipsec certutil -D -n east
west #
 mkdir -p /var/run/pluto
west #
 # Set a time in the future so notyetvalid and east certs are valid
west #
 # here.  Invoke pluto directly so that it is the root of the shared
west #
 # faketime tree.
west #
 LD_PRELOAD=PATH/lib64/faketime/libfaketime.so.1 FAKETIME=+370d ipsec pluto  --config /etc/ipsec.conf
west #
 ../../guestbin/wait-until-pluto-started
west #
 # if faketime works, adding conn should not give a warning about cert
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 #
 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: ignoring informational payload INVALID_ID_INFORMATION, msgid=00000000, length=12
"nss-cert" #1: received and ignored notification payload: INVALID_ID_INFORMATION
"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 #
 # will only show up on east - note "expired" is wrong and should be "not yet valid"
west #
 grep "ERROR" /tmp/pluto.log
west #
 
