/testing/guestbin/swan-prep --x509
Preparing X.509 files
east #
 ipsec certutil -D -n west
east #
 # add second identity/cert
east #
 #/testing/x509/import.sh otherca/othereast.p12
east #
 /testing/x509/import.sh real/mainca/north.p12
 ipsec pk12util -w nss-pw -i real/mainca/north.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
 ipsec certutil -M -n mainca -t CT,,
 ipsec certutil -O -n north
"mainca" [E=testing@libreswan.org,CN=Libreswan test CA for mainca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
  "north" [E=user-north@testing.libreswan.org,CN=north.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ../../guestbin/ipsec-add.sh main-north main-east
"main-north": added IKEv2 connection
"main-east": added IKEv2 connection
east #
 echo "initdone"
initdone
east #
 # we should see conn other being up
east #
 ipsec whack --trafficstatus
#2: "main-east"[1] 192.1.2.45, type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@west.testing.libreswan.org'
east #
 # On east, we should see it has switched
east #
 hostname | grep east > /dev/null && grep '^[^|].* switched ' /tmp/pluto.log
"main-north"[1] 192.1.2.45 #1: switched to "main-east"[1] 192.1.2.45
east #
 ipsec whack --shutdown
Pluto is shutting down
east #
