/testing/guestbin/swan-prep --nokeys
Initializing 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 #
 /testing/x509/import.sh real/mainca/nic.end.cert
 ipsec certutil -A -n nic -t P,, -i real/mainca/nic.end.cert
 ipsec certutil -O -n nic
"mainca" [E=testing@libreswan.org,CN=Libreswan test CA for mainca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
  "nic" [E=user-nic@testing.libreswan.org,CN=nic.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
west #
 /testing/x509/import.sh real/mainca/crl-is-out-of-date.crl
 ipsec crlutil -I -i real/mainca/crl-is-out-of-date.crl
west #
 ipsec certutil -L
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
west                                                         u,u,u
mainca                                                       CT,, 
nic                                                          P,,  
west #
 ipsec pluto --config /etc/ipsec.conf
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair revival
west #
 ipsec add nss-cert-crl
"nss-cert-crl": added oriented IKEv2 connection
west #
 # Try to establish, it will fail because the CRL list is out-of-date.
west #
 # Since crlcheckinterval=0, no further action is taken.
west #
 ipsec up nss-cert-crl
"nss-cert-crl" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"nss-cert-crl" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"nss-cert-crl" #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 ke=DH19}, initiating IKE_AUTH
"nss-cert-crl" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 with digital-signature RSASSA-PSS with SHA2_512 and DER_ASN1_DN 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, E=user-west@testing.libreswan.org'; Child SA #2 {ESP <0xESPESP} [192.0.1.254/32===192.0.2.254/32]
"nss-cert-crl" #1: processing IKE_AUTH response from 192.1.2.23:UDP/500 containing SK{IDr,CERT,AUTH,SA,TSi,TSr} reassembled from N fragments
"nss-cert-crl" #1: certificate payload rejected; crl-strict=yes and Certificate Revocation List (CRL) is expired or missing
warning: "nss-cert-crl" #1: automatic update of Certificate Revocation List (CRL) is disabled; see "crlcheckinterval="
"nss-cert-crl" #1: X509: certificate payload rejected for this connection
"nss-cert-crl" #1: encountered fatal error in state IKE_AUTH_I
"nss-cert-crl" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
IMPAIR: "nss-cert-crl" #2: revival: skip scheduling CONNECTION_REVIVAL event in 0 seconds
"nss-cert-crl" #1: deleting IKE SA (sent IKE_AUTH request)
west #
 # should be no pending CRL fetches; force an update
west #
 ipsec listcrls
 
List of CRLs:
 
issuer: C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org
revoked certs: 1
updates: this TIMESTAMP
         next TIMESTAMP
west #
 ipsec fetchcrls
CRL: imported CRL 'http://nic.testing.libreswan.org/revoked.crl' signed by 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' after 1 attempt(s)
west #
 ipsec listcrls
 
List of CRLs:
 
issuer: C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org
revoked certs: 1
updates: this TIMESTAMP
         next TIMESTAMP
west #
 # only one fetch
west #
 grep '^CRL: ' /tmp/pluto.log
CRL: imported CRL 'http://nic.testing.libreswan.org/revoked.crl' signed by 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' after 1 attempt(s)
west #
 test -r /tmp/pluto.log && grep -e '^[^|].*ERROR' /tmp/pluto.log
west #
 test -r /tmp/pluto.log && ipsec crlutil -L
CRL names                                CRL Type
mainca                                   CRL  
west #
