testing: Add scenarios that use a CA with two intermediate CA certificates
[strongswan.git] / testing / tests / tkm / multi-level-ca / pretest.dat
1 moon::rm /etc/swanctl/rsa/*
2 moon::tkm_cfgtool -c /etc/tkm/tkm.conf -i /etc/swanctl/swanctl.conf -t /etc/tkm/tkm.bin -s /usr/local/share/tkm/tkmconfig.xsd
3 moon::cat /etc/swanctl/swanctl.conf
4 moon::tkm_keymanager -c /etc/tkm/tkm.bin -k /etc/tkm/moonKey.der -r /etc/tkm/strongswanCert.der:1,/etc/tkm/levelsCert.der:2 >/tmp/tkm.log 2>&1 &
5 moon::expect-file /tmp/tkm.rpc.ike
6 moon::service charon-tkm start
7 carol::systemctl start strongswan
8 carol::expect-connection host-host
9 dave::systemctl start strongswan
10 dave::expect-connection host-host
11 moon::expect-connection conn1
12 moon::expect-connection conn2
13 carol::swanctl --initiate --child host-host 2> /dev/null
14 dave::swanctl --initiate --child host-host 2> /dev/null