/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
east #
 # what we send to peer
east #
 /testing/x509/import.sh real/mainca/east_chain_endcert.end.p12
 ipsec pk12util -w nss-pw -i real/mainca/east_chain_endcert.end.p12
pk12util: PKCS12 IMPORT SUCCESSFUL
 ipsec certutil -O -n east_chain_endcert
"east_chain_endcert" [E=east_chain_endcert@testing.libreswan.org,CN=east_chain_endcert.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
east #
 /testing/x509/import.sh real/mainca/east_chain_int_2.end.cert
 ipsec certutil -A -n east_chain_int_2 -t P,, -i real/mainca/east_chain_int_2.end.cert
 ipsec certutil -O -n east_chain_int_2
"east_chain_int_2" [E=east_chain_int_2@testing.libreswan.org,CN=east_chain_int_2.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
east #
 # how we authenticate peer
east #
 /testing/x509/import.sh real/mainca/west_chain_int_1.end.cert
 ipsec certutil -A -n west_chain_int_1 -t P,, -i real/mainca/west_chain_int_1.end.cert
 ipsec certutil -O -n west_chain_int_1
"west_chain_int_1" [E=west_chain_int_1@testing.libreswan.org,CN=west_chain_int_1.testing.libreswan.org,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
east #
 /testing/x509/import.sh real/mainca/root.cert
 ipsec certutil -A -n mainca -t CT,, -i real/mainca/root.cert
 ipsec certutil -O -n mainca
"mainca" [E=testing@libreswan.org,CN=Libreswan test CA for mainca,OU=Test Department,O=Libreswan,L=Toronto,ST=Ontario,C=CA]
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add nss-cert-chain
"nss-cert-chain": added IKEv1 connection
east #
 ipsec auto --status |grep nss-cert-chain
"nss-cert-chain": 192.0.2.254/32===192.1.2.23[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east_chain_endcert.testing.libreswan.org, E=east_chain_endcert@testing.libreswan.org]...192.1.2.45[%fromcert]===192.0.1.254/32; unrouted; my_ip=192.0.2.254; their_ip=192.0.1.254;
"nss-cert-chain":   host: oriented; local: 192.1.2.23; remote: 192.1.2.45;
"nss-cert-chain":   mycert=east_chain_endcert; my_updown=ipsec _updown;
"nss-cert-chain":   xauth us:none, xauth them:none, my_username=[any]; their_username=[any]
"nss-cert-chain":   our auth:rsasig, their auth:rsasig, our autheap:none, their autheap:none;
"nss-cert-chain":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"nss-cert-chain":   cisco-split: no; cisco-unity: no; cisco-peer: no; nm-configured: no;
"nss-cert-chain":   sec_label:unset;
"nss-cert-chain":   CAs: 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east_chain_int_2.testing.libreswan.org, E=east_chain_int_2@testing.libreswan.org'...'%any'
"nss-cert-chain":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"nss-cert-chain":   iptfs: no; fragmentation: yes; packet-size: 0; max-queue-size: 0; drop-time: 0; init-delay: 0; reorder-window: 0;
"nss-cert-chain":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"nss-cert-chain":   initial-contact:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"nss-cert-chain":   policy: IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES;
"nss-cert-chain":   conn_prio: 32,32,0; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"nss-cert-chain":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"nss-cert-chain":   our idtype: DER_ASN1_DN; our id=C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east_chain_endcert.testing.libreswan.org, E=east_chain_endcert@testing.libreswan.org; their idtype: %fromcert; their id=%fromcert
"nss-cert-chain":   sendca: issuer; our sendcert: always; their sendcert: always;
"nss-cert-chain":   dpd: passive; delay:0s; timeout:0s
"nss-cert-chain":   nat-traversal: encapsulation:auto; keepalive:20s; ikev1-method:rfc+drafts
"nss-cert-chain":   routing: unrouted;
"nss-cert-chain":   conn serial: $1;
east #
 ipsec whack --impair suppress_retransmits
east #
 echo "initdone"
initdone
east #
 ipsec certutil -L
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
east_chain_endcert                                           u,u,u
east_chain_int_2                                             P,,  
west_chain_int_1                                             P,,  
mainca                                                       CT,, 
east #
 # catch any cert chain specific leaks
east #
 ipsec whack --shutdown
Pluto is shutting down
east #
