/testing/guestbin/swan-prep --x509
Preparing X.509 files
west #
 ipsec certutil -D -n east
west #
 ipsec pk12util -i OUTPUT/west-notyetvalid.p12 -W secret
pk12util: PKCS12 IMPORT SUCCESSFUL
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
PATH/libexec/ipsec/pluto: unexpected open file descriptor 3
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 IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair revival
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec auto --up nss-cert
"nss-cert" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"nss-cert" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"nss-cert" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"nss-cert" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"nss-cert" #1: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED
"nss-cert" #1: encountered fatal error in state IKE_AUTH_I
"nss-cert" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"nss-cert" #2: IMPAIR: revival: skip scheduling revival event
"nss-cert" #1: deleting IKE SA (sent IKE_AUTH request)
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 #
 
