Test SWID REST API ins tnc/tnccs-20-pdp scenarios
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
WSGIPythonPath /var/www/tnc
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName tnc.strongswan.org
|
||||
ServerAlias tnc
|
||||
ServerAdmin webmaster@localhost
|
||||
|
||||
DocumentRoot /var/www/tnc
|
||||
|
||||
<Directory /var/www/tnc/config>
|
||||
<Files wsgi.py>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Files>
|
||||
</Directory>
|
||||
|
||||
WSGIScriptAlias / /var/www/tnc/config/wsgi.py
|
||||
WSGIApplicationGroup %{GLOBAL}
|
||||
WSGIPassAuthorization On
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/tnc/error.log
|
||||
LogLevel warn
|
||||
CustomLog ${APACHE_LOG_DIR}/tnc/access.log combined
|
||||
</VirtualHost>
|
||||
@@ -5,6 +5,10 @@
|
||||
-P OUTPUT DROP
|
||||
-P FORWARD DROP
|
||||
|
||||
# open loopback interface
|
||||
-A INPUT -i lo -j ACCEPT
|
||||
-A OUTPUT -o lo -j ACCEPT
|
||||
|
||||
# allow PT-TLS
|
||||
-A INPUT -i eth0 -p tcp --dport 271 -j ACCEPT
|
||||
-A OUTPUT -o eth0 -p tcp --sport 271 -j ACCEPT
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
[debug]
|
||||
DEBUG=1
|
||||
TEMPLATE_DEBUG=1
|
||||
DEBUG_TOOLBAR=0
|
||||
|
||||
[db]
|
||||
DJANGO_DB_URL=sqlite:////etc/strongTNC/django.db
|
||||
STRONGTNC_DB_URL = sqlite:////etc/pts/config.db
|
||||
|
||||
[localization]
|
||||
LANGUAGE_CODE=en-us
|
||||
TIME_ZONE=Europe/Zurich
|
||||
|
||||
[admins]
|
||||
Your Name: [email protected]
|
||||
|
||||
[security]
|
||||
SECRET_KEY=strongSwan
|
||||
|
||||
@@ -13,16 +13,17 @@ charon {
|
||||
}
|
||||
}
|
||||
|
||||
libtnccs {
|
||||
plugins {
|
||||
tnccs-20 {
|
||||
max_batch_size = 131056
|
||||
max_message_size = 131024
|
||||
}
|
||||
}
|
||||
libtls {
|
||||
suites = TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
|
||||
}
|
||||
|
||||
libimcv {
|
||||
database = sqlite:///etc/pts/config.db
|
||||
policy_script = ipsec imv_policy_manager
|
||||
|
||||
plugins {
|
||||
imv-swid {
|
||||
rest_api_uri = http://admin-user:[email protected]/api/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
--client carol
|
||||
--secret "Ar3etTnp"
|
||||
--cert /etc/ipsec.d/cacerts/strongswanCert.pem
|
||||
--debug 2
|
||||
--quiet
|
||||
--debug 2
|
||||
|
||||
@@ -1,25 +1,5 @@
|
||||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
libimcv {
|
||||
plugins {
|
||||
imc-os {
|
||||
push_info = yes
|
||||
}
|
||||
imc-swid {
|
||||
#swid_directory = /usr/share
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
libtnccs {
|
||||
plugins {
|
||||
tnccs-20 {
|
||||
max_batch_size = 131056
|
||||
max_message_size = 131024
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
libtls {
|
||||
suites = TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
|
||||
}
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
--key /etc/ipsec.d/private/daveKey.pem
|
||||
--cert /etc/ipsec.d/certs/daveCert.pem
|
||||
--cert /etc/ipsec.d/cacerts/strongswanCert.pem
|
||||
--quiet
|
||||
--debug 2
|
||||
|
||||
@@ -6,20 +6,12 @@ libimcv {
|
||||
push_info = no
|
||||
}
|
||||
imc-swid {
|
||||
swid_directory = /usr/share
|
||||
swid_pretty = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
libtnccs {
|
||||
plugins {
|
||||
tnccs-20 {
|
||||
max_batch_size = 131056
|
||||
max_message_size = 131024
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
libtls {
|
||||
suites = TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user