diff options
Diffstat (limited to 'test/integration/targets/mail/files')
-rw-r--r-- | test/integration/targets/mail/files/smtpserver.crt | 22 | ||||
-rw-r--r-- | test/integration/targets/mail/files/smtpserver.key | 28 | ||||
-rwxr-xr-x | test/integration/targets/mail/files/smtpserver.py | 68 |
3 files changed, 0 insertions, 118 deletions
diff --git a/test/integration/targets/mail/files/smtpserver.crt b/test/integration/targets/mail/files/smtpserver.crt deleted file mode 100644 index 44c18a243e..0000000000 --- a/test/integration/targets/mail/files/smtpserver.crt +++ /dev/null @@ -1,22 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDrzCCApegAwIBAgIJAJyHQUcqSOQpMA0GCSqGSIb3DQEBCwUAMG4xCzAJBgNV -BAYTAkJFMRMwEQYDVQQIDApWbGFhbmRlcmVuMQ0wCwYDVQQHDARHZW50MQ4wDAYD -VQQKDAVEYWdpdDELMAkGA1UECwwCSVQxHjAcBgNVBAMMFWxvY2FsaG9zdC5sb2Nh -bGRvbWFpbjAeFw0xODExMjgxMjQ3MzlaFw0yODExMjUxMjQ3MzlaMG4xCzAJBgNV -BAYTAkJFMRMwEQYDVQQIDApWbGFhbmRlcmVuMQ0wCwYDVQQHDARHZW50MQ4wDAYD -VQQKDAVEYWdpdDELMAkGA1UECwwCSVQxHjAcBgNVBAMMFWxvY2FsaG9zdC5sb2Nh -bGRvbWFpbjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANLqBGgIF44U -zRhNupGwSKAeTIXT4nXPIJKlIi1kTSQwtywQmBw6leBlvj1qwU73+nhqwSclIrYx -3ltvrpKHAWG1jqqsExuLRaKRdWgx1YC2WPgZwYC0C+LkE8vs/Kl1v0HgPuPMkzeK -hDctQfWOaykFOy0mB/BfP2vSVoEckffMlDjG/bHwNt7cG8BnqKd8e9VR+ZcBazFK -bnKhht0ldR84Wbp+5wpuCr1R1R0ltdO2O+LACrXzvH9Kf0CGhKXGccwGpi43eXyK -CDbubkGcLjg9Fo7kZ6uW5nU2vHJ1iDGnvUl8X96qKoOFU0EvBveCisc1bY433uG1 -NjEZ1xLPGK8CAwEAAaNQME4wHQYDVR0OBBYEFO6nDFzJBZBLJt4yza+VrUEOy3Zl -MB8GA1UdIwQYMBaAFO6nDFzJBZBLJt4yza+VrUEOy3ZlMAwGA1UdEwQFMAMBAf8w -DQYJKoZIhvcNAQELBQADggEBALTq0ycKhEr/3KOsfKBup4bs5Oqv0x7ePaUNxyef -JSyKTjD0gPY8YNAeNA7gU5XGjMr4h9cNpRmJ0TyfwWJxH4uK4d2p5k1ZpQWKv8jG -4U9sZTQzkh8nqRBaEl94qsiCIRCllb6VveWbIGE6eqt4rT0V9l9fvbw+hSXdiYXT -KkkX5VZxctV2OMkbP1mbOYIA22jqZKQiIvAVcMA6vSnlDAJKTi9/kw99/zjUQ9Jb -8bF2gcnzAijJAWsCqf8hZVq9+pogptBd/bkKUCuTA4MACX5ppgQltkgX2mLrj6Ep -Po2euqzUZREzKl2cUaP85m+8tClYk0Wjfm0RjxPRa8fgUfM= ------END CERTIFICATE----- diff --git a/test/integration/targets/mail/files/smtpserver.key b/test/integration/targets/mail/files/smtpserver.key deleted file mode 100644 index 48ddf644c9..0000000000 --- a/test/integration/targets/mail/files/smtpserver.key +++ /dev/null @@ -1,28 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDS6gRoCBeOFM0Y -TbqRsEigHkyF0+J1zyCSpSItZE0kMLcsEJgcOpXgZb49asFO9/p4asEnJSK2Md5b -b66ShwFhtY6qrBMbi0WikXVoMdWAtlj4GcGAtAvi5BPL7Pypdb9B4D7jzJM3ioQ3 -LUH1jmspBTstJgfwXz9r0laBHJH3zJQ4xv2x8Dbe3BvAZ6infHvVUfmXAWsxSm5y -oYbdJXUfOFm6fucKbgq9UdUdJbXTtjviwAq187x/Sn9AhoSlxnHMBqYuN3l8igg2 -7m5BnC44PRaO5GerluZ1NrxydYgxp71JfF/eqiqDh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Q+Aduav5WhQ39vVM5OSav7TrR9bgBn2ZVBAoGBAN4Hle/PIFzApQYQRIT0 -wPpOvEVx56+c70ZMvLv5UgmY2jLKZKFUV6oGGUZlJXfh1ZMnXShWY1pjvi/FnIIi -AKDB9N17DE5AmpzuXFjU3YwXde98MjuUY03P3yaFQ4cXYryqgZxuMPgyGFM9vtMd -WXFdvCtm0c3WMpPJSr9kgy6Q ------END PRIVATE KEY----- diff --git a/test/integration/targets/mail/files/smtpserver.py b/test/integration/targets/mail/files/smtpserver.py deleted file mode 100755 index 01b257e189..0000000000 --- a/test/integration/targets/mail/files/smtpserver.py +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2018, Dag Wieers (@dagwieers) <dag@wieers.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -import asyncore -import os.path -import ssl -import sys - -# Handle TLS and non-TLS support -try: - import smtpd_tls - HAS_TLS = True -except ImportError: - import smtpd - HAS_TLS = False - print('Library smtpd-tls is missing or not supported, hence starttls is NOT supported.') - -# Handle custom ports -port = '25:465' -if len(sys.argv) > 1: - port = sys.argv[1] -ports = port.split(':') -if len(ports) > 1: - port1, port2 = int(ports[0]), int(ports[1]) -else: - port1, port2 = int(port), None - -# Handle custom certificate -basename = os.path.splitext(sys.argv[0])[0] -certfile = basename + '.crt' -if len(sys.argv) > 2: - certfile = sys.argv[2] - -# Handle custom key -keyfile = basename + '.key' -if len(sys.argv) > 3: - keyfile = sys.argv[3] - -try: - ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) -except AttributeError: - ssl_ctx = None - if HAS_TLS: - print('Python ssl library does not support SSLContext, hence starttls and TLS are not supported.') - import smtpd - -if HAS_TLS and ssl_ctx is not None: - print('Using %s and %s' % (certfile, keyfile)) - ssl_ctx.load_cert_chain(certfile=certfile, keyfile=keyfile) - - print('Start SMTP server on port', port1) - smtp_server1 = smtpd_tls.DebuggingServer(('127.0.0.1', port1), None, ssl_ctx=ssl_ctx, starttls=True) - if port2: - print('Start TLS SMTP server on port', port2) - smtp_server2 = smtpd_tls.DebuggingServer(('127.0.0.1', port2), None, ssl_ctx=ssl_ctx, starttls=False) -else: - print('Start SMTP server on port', port1) - smtp_server1 = smtpd.DebuggingServer(('127.0.0.1', port1), None) - if port2: - print('WARNING: TLS is NOT supported on this system, not listening on port %s.' % port2) - -asyncore.loop() |