Added test to verify connections with DSA keys of various sizes.

parent 337eed5f
......@@ -282,6 +282,7 @@ AC_CONFIG_FILES([
src/cfg/platon/str/Makefile
tests/Makefile
tests/key-id/Makefile
tests/dsa/Makefile
tests/openpgp-certs/Makefile
tests/safe-renegotiation/Makefile
tests/pathlen/Makefile
......
......@@ -21,7 +21,7 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
SUBDIRS = . rsa-md5-collision pkcs1-padding pkcs8-decode pkcs12-decode \
userid pathlen key-id sha2 safe-renegotiation
userid pathlen key-id sha2 safe-renegotiation dsa
if ENABLE_OPENPGP
SUBDIRS += openpgp-certs
......
## Process this file with automake to produce Makefile.in
# Copyright (C) 2007, 2008, 2010 Free Software Foundation, Inc.
#
# Author: Simon Josefsson
#
# This file is part of GnuTLS.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
EXTRA_DIST = cert.dsa.1024.pem cert.dsa.2048.pem cert.dsa.3072.pem dsa.1024.pem dsa.2048.pem dsa.3072.pem
dist_check_SCRIPTS = testdsa
TESTS = testdsa
TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT)
-----BEGIN CERTIFICATE-----
MIIDUTCCAxGgAwIBAgIBBzAJBgcqhkjOOAQDMGIxCzAJBgNVBAYTAkdSMRIwEAYD
VQQKEwlLb2tvIGluYy4xFzAVBgNVBAsTDnNsZWVwaW5nIGRlcHQuMQ8wDQYDVQQI
EwZBdHRpa2kxFTATBgNVBAMTDENpbmR5IExhdXBlcjAeFw0xMTAzMTkwOTM2NDVa
Fw0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!/bin/bash
# Copyright (C) 2010 Free Software Foundation, Inc.
#
# Author: Nikos Mavrogiannopoulos
#
# This file is part of GnuTLS.
#
# GnuTLS is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# GnuTLS is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GnuTLS; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
srcdir="${srcdir:-.}"
SERV="${SERV:-../../src/gnutls-serv} -q"
CLI="${CLI:-../../src/gnutls-cli}"
PORT="${PORT:-5559}"
unset RETCODE
fail() {
echo "Failure: $1" >&2
exit 1
}
echo "Checking various DSA key sizes"
# DSA 1024 + TLS 1.0
echo "Checking DSA-1024 with TLS 1.0"
$SERV -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0" --x509certfile $srcdir/cert.dsa.1024.pem --x509keyfile $srcdir/dsa.1024.pem >/dev/null 2>&1 &
# give the server a chance to initialize
sleep 2
$CLI -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null || \
fail "Failed connection to a server with DSA 1024 key and TLS 1.0!"
kill %1
wait
# DSA 1024 + TLS 1.2
echo "Checking DSA-1024 with TLS 1.2"
$SERV -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2" --x509certfile $srcdir/cert.dsa.1024.pem --x509keyfile $srcdir/dsa.1024.pem >/dev/null 2>&1 &
# give the server a chance to initialize
sleep 2
$CLI -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null || \
fail "Failed connection to a server with DSA 1024 key and TLS 1.2!"
kill %1
wait
# DSA 2048 + TLS 1.0
echo "Checking DSA-2048 with TLS 1.0"
$SERV -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0" --x509certfile $srcdir/cert.dsa.2048.pem --x509keyfile $srcdir/dsa.2048.pem >/dev/null 2>&1 &
# give the server a chance to initialize
sleep 2
$CLI -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null && \
fail "Succeeded connection to a server with DSA 2048 key and TLS 1.0. Should have failed!"
kill %1
wait
# DSA 2048 + TLS 1.2
echo "Checking DSA-2048 with TLS 1.2"
$SERV -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2" --x509certfile $srcdir/cert.dsa.2048.pem --x509keyfile $srcdir/dsa.2048.pem >/dev/null 2>&1 &
# give the server a chance to initialize
sleep 2
$CLI -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null || \
fail "Failed connection to a server with DSA 2048 key and TLS 1.2!"
kill %1
wait
# DSA 3072 + TLS 1.0
echo "Checking DSA-3072 with TLS 1.0"
$SERV -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0" --x509certfile $srcdir/cert.dsa.3072.pem --x509keyfile $srcdir/dsa.3072.pem >/dev/null 2>&1 &
# give the server a chance to initialize
sleep 2
$CLI -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null && \
fail "Succeeded connection to a server with DSA 2048 key and TLS 1.0. Should have failed!"
kill %1
wait
# DSA 3072 + TLS 1.2
echo "Checking DSA-3072 with TLS 1.2"
$SERV -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2" --x509certfile $srcdir/cert.dsa.3072.pem --x509keyfile $srcdir/dsa.3072.pem >/dev/null 2>&1 &
# give the server a chance to initialize
sleep 2
$CLI -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null || \
fail "Failed connection to a server with DSA 3072 key and TLS 1.2!"
kill %1
wait
exit 0
......@@ -669,6 +669,9 @@ LTLIBTASN1 = @LTLIBTASN1@
LT_AGE = @LT_AGE@
LT_CURRENT = @LT_CURRENT@
LT_REVISION = @LT_REVISION@
LT_SSL_AGE = @LT_SSL_AGE@
LT_SSL_CURRENT = @LT_SSL_CURRENT@
LT_SSL_REVISION = @LT_SSL_REVISION@
LZO_LIBS = @LZO_LIBS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment