Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Wouters <pwouters@redhat.com>
- Loading branch information
1 parent
a363796
commit 83fc58d
Showing
81 changed files
with
1,263 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
testing/pluto/interop-ikev2-strongswan-37-initiator-no-digsig/description.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Basic pluto with IKEv2 using X.509 on the responder (east), and Strongswan on | ||
the initiator (west). | ||
|
||
This is the basic test for Authentication method NOT as Digital Signatures as | ||
specified in RFC 7427. | ||
|
||
Authentication is successful with RSA-SHA1 (old style rsa) | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
testing/pluto/interop-ikev2-strongswan-37-initiator-no-digsig/westrun.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
strongswan up westnet-eastnet-ikev2 | ||
ping -n -c4 -I 192.0.1.254 192.0.2.254 | ||
|
||
# hash algorithm notication should NOT be received | ||
grep SIGNATURE_HASH_ALGO /tmp/charon.log | cut -f 2 -d "]" | ||
|
||
echo done |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
testing/pluto/interop-ikev2-strongswan-41-responder-digsig-rsa-pss-256/description.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
RFC 7427: | ||
Basic pluto with IKEv2 using X.509 on the initiator (west), and Strongswan on | ||
the responder (east) using Digital Signature Authentication. | ||
|
||
This is the reverse test of interop-ikev2-strongswan-05 | ||
|
||
By default the Authentication method now is Digital Signatures. | ||
We currently supoort RSA-PSS with SHA2 (SHA2_256,SHA2_384 and SHA2_512) | ||
|
||
This testcase tests the auth scheme with rsa-sha2 (rsa-sha2_256) | ||
|
29 changes: 29 additions & 0 deletions
29
testing/pluto/interop-ikev2-strongswan-41-responder-digsig-rsa-pss-256/east.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# /etc/ipsec.conf - Strongswan IPsec configuration file | ||
|
||
config setup | ||
# setup items now go into strongswan.conf for version 5+ | ||
|
||
conn westnet-eastnet-ikev2 | ||
authby=rsasig | ||
leftauth=ike:rsa/pss-sha256 | ||
rightauth=ike:rsa/pss-sha256 | ||
#auto=start | ||
left=192.1.2.45 | ||
leftsubnet=192.0.1.0/24 | ||
leftrsasigkey=%cert | ||
leftcert=/etc/strongswan/ipsec.d/certs/west.crt | ||
leftsendcert=never | ||
leftid="C=CA, ST=Ontario, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, E=testing.libreswan.org" | ||
right=192.1.2.23 | ||
rightsubnet=192.0.2.0/24 | ||
rightrsasigkey=%cert | ||
rightcert=/etc/strongswan/ipsec.d/certs/east.crt | ||
rightsendcert=never | ||
rightid="C=CA/ST=Ontario/O=Libreswan/OU=Test Department/CN=east.testing.libreswan.org/E=testing.libreswan.org" | ||
# strongswan options | ||
keyexchange=ikev2 | ||
auto=add | ||
fragmentation=yes | ||
|
||
#strongswan cannot include this, due to incompatible options | ||
#include /testing/baseconfigs/all/etc/ipsec.d/ipsec.conf.common |
20 changes: 20 additions & 0 deletions
20
testing/pluto/interop-ikev2-strongswan-41-responder-digsig-rsa-pss-256/east.console.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/testing/guestbin/swan-prep --userland strongswan --x509 | ||
east # | ||
../../pluto/bin/strongswan-start.sh | ||
east # | ||
echo "initdone" | ||
initdone | ||
east # | ||
if [ -f /var/run/pluto/pluto.pid ]; then ../../pluto/bin/ipsec-look.sh ; fi | ||
east # | ||
if [ -f /var/run/charon.pid ]; then strongswan status ; fi | ||
Security Associations (1 up, 0 connecting): | ||
westnet-eastnet-ikev2[2]: ESTABLISHED XXX second ago, 192.1.2.23[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org]...192.1.2.45[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, E=user-west@testing.libreswan.org] | ||
westnet-eastnet-ikev2{1}: INSTALLED, TUNNEL, reqid 1, ESP SPIs: SPISPI_i SPISPI_o | ||
westnet-eastnet-ikev2{1}: 192.0.2.0/24 === 192.0.1.0/24 | ||
east # | ||
east # | ||
../bin/check-for-core.sh | ||
east # | ||
if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi | ||
|
Oops, something went wrong.