/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
east #
 # east, but without root
east #
 /testing/x509/import.sh real/mainca/east.end.p12
ipsec pk12util -w nss-pw -i real/mainca/east.end.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
east #
 # Insert a different, broken, CAcert chain
east #
 # Avoids NSS aborting for having no CA at all (?!?)
east #
 /testing/x509/import.sh real/badca/badeast.all.p12
ipsec pk12util -w nss-pw -i real/badca/badeast.all.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
ipsec certutil -M -n badca -t CT,,
east #
 # Don't add CT to root bad cert; otherwise the message:
east #
 #    no Certificate Authority in NSS Certificate DB
east #
 # doesn't appear (but doesn't that contradict above?)
east #
 # # ipsec certutil -M -n badca -t CT,,
east #
 # check
east #
 ipsec certutil -L
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
east                                                         u,u,u
badeast                                                      u,u,u
badca                                                        CT,, 
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add ikev2-westnet-eastnet-x509-cr
"ikev2-westnet-eastnet-x509-cr": added IKEv2 connection
east #
 echo "initdone"
initdone
east #
 hostname | grep east > /dev/null && grep -E "no Certificate Authority in NSS Certificate DB|authentication using rsasig failed" /tmp/pluto.log
east #
 
