/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 /testing/x509/import.sh real/mainca/west.all.p12
ipsec pk12util -w nss-pw -i real/mainca/west.all.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
ipsec certutil -M -n mainca -t CT,,
west #
 /testing/x509/import.sh real/otherca/otherwest.all.p12
ipsec pk12util -w nss-pw -i real/otherca/otherwest.all.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
ipsec certutil -M -n otherca -t CT,,
west #
 # check
west #
 ipsec certutil -L
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
west                                                         u,u,u
mainca                                                       CT,, 
otherwest                                                    u,u,u
otherca                                                      CT,, 
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec auto --add main
"main": added IKEv2 connection
west #
 ipsec auto --add other
"other": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec auto --up other
"other" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"other" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"other" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"other" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"other" #1: initiator established IKE SA; authenticated peer certificate '@othereast.other.libreswan.org' and 3nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for otherca, E=testing@libreswan.org'
"other" #2: initiator established Child SA using #1; IPsec tunnel [192.1.2.45/32===192.1.2.23/32] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
west #
 echo "done"
done
west #
 # we should see conn other being up
west #
 ipsec whack --trafficstatus
#2: "other", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@othereast.other.libreswan.org'
west #
 
