/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 /testing/x509/import.sh real/mainca/`hostname`.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 #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add san
"san": added IKEv1 connection
west #
 echo "initdone"
initdone
west #
 # we cannot set impair retransmits, as strongswan attempts to get OCSP/CRL
west #
 # which takes longer then our Quick Mode msg.
west #
 #ipsec whack --impair suppress_retransmits
west #
 # this should succeed
west #
 ipsec auto --up san
"san" #1: initiating IKEv1 Aggressive Mode connection
"san" #1: I am sending a certificate request
"san" #1: sent Aggressive Mode request
"san" #1: Peer ID is ID_DER_ASN1_DN: 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org'
"san" #1: authenticated peer certificate 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org' and 3nnn-bit RSA with SHA1 signature issued by 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org'
"san" #1: I am sending my cert
"san" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP1536}
"san" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+AGGRESSIVE+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"san" #2: sent Quick Mode request
"san" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 echo "done"
done
west #
 # confirm the right ID types were sent/received
west #
 grep "ID type" /tmp/pluto.log | sort | uniq
|    ID type: ID_DER_ASN1_DN (0x9)
|    ID type: ID_IPV4_ADDR (0x1)
west #
 
