/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
 ipsec certutil -O -n east
"east" [E=user-east@testing.libreswan.org,CN=east.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
east #
 # Add a distracting CA; avoids NSS aborting for having no CA at all
east #
 # (?!?)
east #
 /testing/x509/import.sh otherca/othereast.p12
 ipsec pk12util -w nss-pw -i otherca/othereast.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
 ipsec certutil -M -n otherca -t CT,,
 ipsec certutil -O -n othereast
"otherca" [E=testing@libreswan.org,CN=Libreswan test CA for otherca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
  "othereast" [E=user-othereast@testing.libreswan.org,CN=othereast.other.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
east #
 # check
east #
 ipsec certutil -L
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
east                                                         u,u,u
othereast                                                    u,u,u
otherca                                                      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 #
 # on east, expect Peer's Certificate issuer is not recognized
east #
 grep -e '^[^|].*ERROR' /tmp/pluto.log
"ikev2-westnet-eastnet-x509-cr" #1: NSS: ERROR: IPsec certificate E=user-west@testing.libreswan.org,CN=west.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA invalid: SEC_ERROR_UNKNOWN_ISSUER: Peer's Certificate issuer is not recognized.
east #
