From 53b645f2b2f865fa8d6d72518f1af67abacacef2 Mon Sep 17 00:00:00 2001 From: Joseph Sirianni Date: Thu, 25 Feb 2021 13:16:32 -0500 Subject: [PATCH] replace test certificates with longer lasting certificates --- .../builtin/input/forward/forward_test.go | 82 ++++++++--------- operator/builtin/input/tcp/tcp_test.go | 92 +++++++++---------- 2 files changed, 84 insertions(+), 90 deletions(-) diff --git a/operator/builtin/input/forward/forward_test.go b/operator/builtin/input/forward/forward_test.go index c6c5940ec..5bfd92463 100644 --- a/operator/builtin/input/forward/forward_test.go +++ b/operator/builtin/input/forward/forward_test.go @@ -139,7 +139,7 @@ func createCertFiles(t *testing.T) (cert, key string) { } /* - openssl req -x509 -nodes -newkey rsa:2048 -keyout key.pem -out cert.pem -config san.cnf + openssl req -x509 -nodes -newkey rsa:2048 -keyout key.pem -out cert.pem -config san.cnf -days 9999 Generated with the following san.cnf: [req] @@ -167,55 +167,55 @@ func createCertFiles(t *testing.T) (cert, key string) { */ var privateKey = []byte(` -----BEGIN PRIVATE KEY----- -MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDVYJKyB9jDamy5 -gAdRldyqdFfEoQmWqVFVsNcYVqkbLSagcwoi21p8YU4TMkC/vrkN/jHg9lOiwi5z -Uegt/52HG6cpaaAW3AVwA+4/Cwhi4a/dwUGBO80HMvMQ9RwH2ISLa1X0rWPxVT+l -VNQXxfrEU8Jwv80cDwpJUcywmGWuiiPAYMAZLnQjp3jAS/rbVBV4kWAOlgYstKg9 -XjXpssF+LaRGU9F3WMlPtaXuQpMAy54r5nRYVwYGkXmePqC3BQGqgIBkXiaCgSZ5 -VLFM5zKGCJVyNwOytsH9exTo/UbbQnClREaHU6q/lIa7yBiTLvbid3ck89xHnX3a -/K8/ODCXAgMBAAECggEBALSppOsp66VheZcCSLASRBjqktmAQ/8VczErnqMT1PCW -pQra/G0Q7qc7OADW3q26zTKE1DSWO7Al23B2nDA+KmGXz0woC4zvU4dJPLKSI9Kd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/2wdlL8d7yNQ6 +/sqMG8MSc4oY6iaygm8zLXagXlL4TIO/7s6tbEU8Ytzd85pBulUQkGKiMXfILRt4 +krs00wC1Eh7j96BWbPAxiGLMFuhL0g9BQxX3/TpLxaBaaM+oI0xaX/r7L0P5lns1 +90iEFMYSTSW8BGJ0mQWRs14oYexyqNDSr2SbV0nz9pLaZavX/9mmUmY6Pkb9pEyY +fx4xYIDQ2XjnPPvZqW3lFfToLPP4OVIpp5/KLQIDAQABoxMwETAPBgNVHREECDAG +hwR/AAABMA0GCSqGSIb3DQEBCwUAA4IBAQBCH9P06wfRRT2ok5QVCBdAskBc/Xvn +H9AL8qkCHNgv5+gXa4a7FAP1KRMf7mUcQQpv9qDhZlFCc7Gc/NGTvnmyOuhaTKYU +bKSdIqFzJp0qqhM6BiGqcRC8t3dLWE/Om1+lVfwT9f0Iq/14mHwZYxzMKbo+WteF +E7TANU6C5Fog0/YlH7fQrRY0m/ZIK70TKWlDzAyXIFI9YFgfo0Z0Peynw/iDFtaC +Ta4ai0P8ztyvlPjahgfz4BMdfNXyridGkWV6PQyBA8Wbng+11HnPW42JtOCYgTtV +2P/HjYMIRJDkCitvNpjPIAIHSJLhMLGduyZziKwZjyWfiaxP0BW226tl -----END CERTIFICATE----- `) diff --git a/operator/builtin/input/tcp/tcp_test.go b/operator/builtin/input/tcp/tcp_test.go index f1cd13d99..0020a9bfa 100644 --- a/operator/builtin/input/tcp/tcp_test.go +++ b/operator/builtin/input/tcp/tcp_test.go @@ -16,59 +16,56 @@ import ( const testTLSPrivateKey = ` -----BEGIN PRIVATE KEY----- -MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDjKFqtAaZ/Uj53 -Wk2r0xfH9IQqxCjH9gYFI+Kblf8Jvk2sZrQZbLrdjdHsZz/rLrt1YvvBSZ5LtkzK -P99wEi6goESCL0FmYP6Jkg0AKOrnfs8AGX/6PyQPfHBeK/767YV47ug0wJT2/92U -1K2rHIb154rPLp3l1k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AtZmbM74 -ez+cfG6859ZLaFZZwY2H0lE4GzFlmkA1FuoR2biyUzRuCH4hMGrHZeiS8KR5ltn2 -C/soJcXCDxtHbbfeDKclyRIIpwsXxGfaWehysMcfZavzJ0ZZioeilwdAZK7PcLY8 -Y3YVtmCDXFa0Hy0jPMN4UMSvPmxRbcVpGSoEx2qnfOqHGmjrKcJ1kA== +BAoMCG9ic2VydmlRMQ8wDQYDVQQLDAZTdGFuemExDzANBgNVBAMMBlN0YW56YTCC +ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN011VEcOg6XCtBg2XM/ox0s +Qi83Tc+/cD8J3LLwuAqBIR/eSbDyj/vm1JDMgBHq/u2z+qrWIDATc4uzivyUBKPb +CKsXZ83FfXY68g/yDeauzi0IA0GHjXcjLBUpwQ6uvLvX+zWTv6Gxwy8V7c0vEPWY +0omiDArKJ+9JzXnPHyB7xIuOnzvk2IsKeLZhhZcG3Wmp3jAKiXyVfq/e7ats1etB +/awudwPQITjkRYefMvMrfdrQHDHJNcA5132SKd0vYgVy30LYdFASTmEZpds03R/o +Qw5k7Np0kd8yV50pUnVc5363+Ro/Njg0sNoZp3Tik1r6OmHniohUvluAJM6K9fUC +AwEAATANBgkqhkiG9w0BAQsFAAOCAQEA0u061goAXX7RxtdRO7Twz4zZIGS/oWvn +gj61zZIXt8LaTzRZFU9rs0rp7jPXKaszArJQc29anf1mWtRwQBAY0S0m4DkwoBln +7hMFf9MlisQvBVFjWgDo7QCJJmAxaPc1NZi8GQIANEMMZ+hLK17dhDB+6SdBbV4R +yx+7I3zcXQ+0H4Aym6KmvoIR3QAXsOYJ/43QzlYU63ryGYBAeg+JiD8fnr2W3QHb +BBdatHmcazlytT5KV+bANT/Ermw8y2tpWGWxMxQHveFh1zThYL8vkLi4fmZqqVCI +zv9WEy+9p05Aet+12x3dzRu93+yRIEYbSZ35NOUWfQ+gspF5rGgpxA== -----END CERTIFICATE-----` - - func tcpInputTest(input []byte, expected []string) func(t *testing.T) { return func(t *testing.T) { cfg := NewTCPInputConfig("test_id") @@ -135,9 +132,6 @@ func tlsTCPInputTest(input []byte, expected []string) func(t *testing.T) { require.NoError(t, err) f.Close() - - - cfg := NewTCPInputConfig("test_id") cfg.ListenAddress = ":0" cfg.TLS.Enable = true