/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
east #
 # add first identity/cert
east #
 /testing/x509/import.sh real/mainca/east.p12
 ipsec pk12util -w nss-pw -i real/mainca/east.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
 ipsec certutil -M -n mainca -t CT,,
 ipsec certutil -O -n east
"mainca" [E=testing@libreswan.org,CN=Libreswan test CA for mainca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
  "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 second identity/cert
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
mainca                                                       CT,, 
othereast                                                    u,u,u
otherca                                                      CT,, 
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ../../guestbin/ipsec-add.sh main other
"main": added IKEv2 connection
"other": added IKEv2 connection
east #
 echo "initdone"
initdone
east #
 # we should see conn other being up
east #
 ipsec whack --trafficstatus
#2: "other"[1] 192.1.2.45, type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@otherwest.other.libreswan.org'
east #
