/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
east #
 /testing/x509/import.sh real/mainca/`hostname`.all.p12
ipsec pk12util -w nss-pw -i real/mainca/east.all.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
ipsec certutil -M -n mainca -t CT,,
east #
 /testing/x509/import.sh real/mainca/nic.end.cert
ipsec certutil -A -n nic -t P,, -i real/mainca/nic.end.cert
east #
 # replace nic with the nic-no url cert
east #
 ipsec certutil -D -n nic
east #
 ipsec certutil -A -i /testing/x509/certs/nic-nourl.crt -n nic -t "P,,"
east #
 ipsec certutil -L
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
east                                                         u,u,u
mainca                                                       CT,, 
nic                                                          P,,  
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add nss-cert-ocsp
"nss-cert-ocsp": added IKEv1 connection
east #
 ipsec whack --impair timeout_on_retransmit
east #
 echo "initdone"
initdone
east #
 grep -v -e '|' /tmp/pluto.log | grep -e 'certificate revoked' -e ERROR
"nss-cert-ocsp" #1: NSS: ERROR: IPsec certificate E=testing@libreswan.org,CN=Libreswan test CA for mainca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA invalid: SEC_ERROR_REVOKED_CERTIFICATE: Peer's Certificate has been revoked.
east #
 
