/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 IKEv2 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
1v2 "nss-cert" #1: initiating IKEv2 connection
1v2 "nss-cert" #1: sent IKE_SA_INIT request
1v2 "nss-cert" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "nss-cert" #1: certificate E=user-notyetvalid@testing.libreswan.org,CN=notyetvalid.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA failed IPsec verification
003 "nss-cert" #1: NSS ERROR: Peer's Certificate has expired.
002 "nss-cert" #1: X509: certificate payload rejected for this connection
036 "nss-cert" #1: encountered fatal error in state STATE_V2_PARENT_I2
002 "nss-cert" #1: deleting state (STATE_V2_PARENT_I2) 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 "certificate payload rejected" /tmp/pluto.log
"nss-cert" #1: X509: certificate payload rejected for this connection
west #
 
