testing: Converted tnc scenarios to swanctl

This commit is contained in:
Andreas Steffen
2015-12-11 18:26:54 +01:00
parent 74270c8c86
commit 6aa7703122
386 changed files with 5091 additions and 2383 deletions
@@ -1,3 +0,0 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
/* configuration is read from /etc/pts/options */
@@ -1,8 +1,8 @@
--connect sun.strongswan.org
--client moon.strongswan.org
--key /etc/ipsec.d/private/moonKey.pem
--cert /etc/ipsec.d/certs/moonCert.pem
--cert /etc/ipsec.d/cacerts/strongswanCert.pem
--key /etc/swanctl/rsa/moonKey.pem
--cert /etc/swanctl/x509/moonCert.pem
--cert /etc/swanctl/x509ca/strongswanCert.pem
--mutual
--quiet
--debug 2
@@ -1,7 +1,11 @@
# /etc/strongswan.conf - strongSwan configuration file
pt-tls-client {
load = x509 openssl pem pkcs1 random nonce revocation curl tnc-tnccs tnc-imc tnc-imv tnccs-20
load = random nonce x509 openssl pem pkcs1 revocation curl tnc-tnccs tnc-imc tnc-imv tnccs-20
}
libtls {
suites = TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
}
libimcv {
@@ -0,0 +1 @@
# the PT-TLS client reads its configuration and secrets via the command line
@@ -1,9 +0,0 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
charondebug="tnc 2, imc 2, imv 2"
conn pdp
leftcert=sunCert.pem
leftid=sun.strongswan.org
auto=add
@@ -1,8 +1,21 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = x509 openssl pem pkcs1 random nonce curl revocation stroke kernel-netlink socket-default tnc-pdp tnc-tnccs tnc-imc tnc-imv tnccs-20
load = random nonce x509 openssl pem pkcs1 revocation curl vici kernel-netlink socket-default tnc-pdp tnc-tnccs tnc-imc tnc-imv tnccs-20
start-scripts {
creds = /usr/local/sbin/swanctl --load-creds
}
syslog {
auth {
default = 0
}
daemon {
tnc = 2
imc = 2
imv = 2
}
}
plugins {
tnc-pdp {
server = sun.strongswan.org
@@ -16,6 +29,10 @@ charon {
}
}
libtls {
suites = TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
}
libimcv {
plugins {
imc-test {
@@ -1 +1 @@
sun::ipsec stop
sun::service charon stop
@@ -1,4 +1,4 @@
sun::ipsec start
sun::service charon start
moon::cat /etc/pts/options
sun::expect-connection pdp
moon::sleep 1
moon::ipsec pt-tls-client --optionsfrom /etc/pts/options
@@ -19,3 +19,7 @@ TCPDUMPHOSTS="sun"
# Used for IPsec logging purposes
#
IPSECHOSTS="moon sun"
# charon controlled by swanctl
#
SWANCTL=1