[glib-networking/wip/ocsp] openssl: Implement OCSP Must-Staple support




commit 1af20fc3acb397d947a8a8e45cc77de748d8bb99
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun Jun 20 21:11:37 2021 -0500

    openssl: Implement OCSP Must-Staple support

 tls/openssl/gtlsclientconnection-openssl.c  |  30 +++---
 tls/openssl/gtlsdatabase-openssl.c          |  55 +++++++++--
 tls/tests/connection.c                      |  58 ++++++++++-
 tls/tests/file-database.h                   |   1 -
 tls/tests/files/ca-alternative.pem          |  34 +++----
 tls/tests/files/ca-key.pem                  |  50 +++++-----
 tls/tests/files/ca-roots-bad.pem            |  36 +++----
 tls/tests/files/ca-roots.pem                |  36 +++----
 tls/tests/files/ca.pem                      |  36 +++----
 tls/tests/files/chain.pem                   |  96 +++++++++----------
 tls/tests/files/client-and-key.pem          |  80 ++++++++--------
 tls/tests/files/client-csr.pem              |  17 ++++
 tls/tests/files/client-future.pem           |  26 ++---
 tls/tests/files/client-key.pem              |  50 +++++-----
 tls/tests/files/client-past.pem             |  26 ++---
 tls/tests/files/client.pem                  |  30 +++---
 tls/tests/files/client2-and-key.pem         |  80 ++++++++--------
 tls/tests/files/client2-csr.pem             |  17 ++++
 tls/tests/files/client2-key.pem             |  50 +++++-----
 tls/tests/files/client2.pem                 |  30 +++---
 tls/tests/files/intermediate-ca-csr.pem     |  28 +++---
 tls/tests/files/intermediate-ca-key.pem     |  50 +++++-----
 tls/tests/files/intermediate-ca.pem         |  34 +++----
 tls/tests/files/non-ca.pem                  | 144 ++++++++++++++--------------
 tls/tests/files/old-ca-key.pem              |  50 +++++-----
 tls/tests/files/old-ca.pem                  |  38 ++++----
 tls/tests/files/root-ca-csr.pem             |  28 +++---
 tls/tests/files/server-and-key.pem          |  82 ++++++++--------
 tls/tests/files/server-csr.pem              |  17 ++++
 tls/tests/files/server-intermediate-csr.pem |  24 ++---
 tls/tests/files/server-intermediate-key.pem |  50 +++++-----
 tls/tests/files/server-intermediate.pem     |  26 ++---
 tls/tests/files/server-key.der              | Bin 1190 -> 1193 bytes
 tls/tests/files/server-key.pem              |  50 +++++-----
 tls/tests/files/server-self.pem             |  30 +++---
 tls/tests/files/server.der                  | Bin 920 -> 939 bytes
 tls/tests/files/server.pem                  |  32 +++----
 tls/tests/files/ssl/server.conf             |   1 +
 38 files changed, 835 insertions(+), 687 deletions(-)
---
diff --git a/tls/openssl/gtlsclientconnection-openssl.c b/tls/openssl/gtlsclientconnection-openssl.c
index 4249bbe..0b72dea 100644
--- a/tls/openssl/gtlsclientconnection-openssl.c
+++ b/tls/openssl/gtlsclientconnection-openssl.c
@@ -202,6 +202,12 @@ g_tls_client_connection_openssl_complete_handshake (GTlsConnectionBase  *tls,
   g_object_notify (G_OBJECT (client), "accepted-cas");
 }
 
+static gboolean
+use_ocsp (void)
+{
+  return g_getenv ("G_TLS_OPENSSL_OCSP_ENABLED") != NULL;
+}
+
 static GTlsCertificateFlags
 verify_ocsp_response (GTlsClientConnectionOpenssl *openssl,
                       GTlsCertificate             *peer_certificate)
@@ -213,16 +219,18 @@ verify_ocsp_response (GTlsClientConnectionOpenssl *openssl,
   long len = 0;
   unsigned char *p = NULL;
 
-  ssl = g_tls_connection_openssl_get_ssl (G_TLS_CONNECTION_OPENSSL (openssl));
-  len = SSL_get_tlsext_status_ocsp_resp (ssl, &p);
-  /* Soft fail in case of no response is the best we can do
-   * FIXME: this makes it security theater, why bother with OCSP at all? */
-  if (!p)
+  /* If we didn't request it earlier just ignore it now */
+  if (!use_ocsp ())
     return 0;
 
-  resp = d2i_OCSP_RESPONSE (NULL, (const unsigned char **)&p, len);
-  if (!resp)
-    return G_TLS_CERTIFICATE_GENERIC_ERROR;
+  ssl = g_tls_connection_openssl_get_ssl (G_TLS_CONNECTION_OPENSSL (openssl));
+  len = SSL_get_tlsext_status_ocsp_resp (ssl, &p);
+  if (p)
+    {
+      resp = d2i_OCSP_RESPONSE (NULL, (const unsigned char **)&p, len);
+      if (!resp)
+        return G_TLS_CERTIFICATE_GENERIC_ERROR;
+    }
 
   database = g_tls_connection_get_database (G_TLS_CONNECTION (openssl));
 
@@ -425,12 +433,6 @@ set_curve_list (GTlsClientConnectionOpenssl *client)
 }
 #endif
 
-static gboolean
-use_ocsp (void)
-{
-  return g_getenv ("G_TLS_OPENSSL_OCSP_ENABLED") != NULL;
-}
-
 static gboolean
 g_tls_client_connection_openssl_initable_init (GInitable       *initable,
                                                GCancellable    *cancellable,
diff --git a/tls/openssl/gtlsdatabase-openssl.c b/tls/openssl/gtlsdatabase-openssl.c
index 65b5ff4..c8a2535 100644
--- a/tls/openssl/gtlsdatabase-openssl.c
+++ b/tls/openssl/gtlsdatabase-openssl.c
@@ -327,24 +327,60 @@ g_tls_database_openssl_verify_ocsp_response (GTlsDatabaseOpenssl *self,
   int ocsp_status = 0;
   int i;
 
-  ocsp_status = OCSP_response_status (resp);
-  if (ocsp_status != OCSP_RESPONSE_STATUS_SUCCESSFUL)
+  chain_openssl = convert_certificate_chain_to_openssl (G_TLS_CERTIFICATE_OPENSSL (chain));
+
+  priv = g_tls_database_openssl_get_instance_private (self);
+  if ((chain_openssl == NULL) ||
+      (priv->store == NULL))
     {
       errors = G_TLS_CERTIFICATE_GENERIC_ERROR;
       goto end;
     }
 
-  basic_resp = OCSP_response_get1_basic (resp);
-  if (basic_resp == NULL)
+  /* If we are missing a response we check if the chain requires a response ("Must-Staple") */
+  if (resp == NULL)
+    {
+      for (guint i_cert = 0; i_cert < sk_X509_num (chain_openssl); i_cert++)
+        {
+          X509 *cert = sk_X509_value (chain_openssl, i_cert);
+          int idx = -1; /* We ignore the return of this as we only expect 1 extension */
+          STACK_OF(ASN1_INTEGER) *features = X509_get_ext_d2i (cert, NID_tlsfeature, NULL, &idx);
+
+          if (!features)
+            {
+              X509_free (cert);
+              continue;
+            }
+
+          for (guint i_feature = 0; i_feature < sk_ASN1_INTEGER_num (features); i_feature++)
+            {
+              const long feature_id = ASN1_INTEGER_get (sk_ASN1_INTEGER_value (features, i_feature));
+              if (feature_id == 5 || feature_id == 17) /* status_request, status_request_v2 */
+                {
+                  errors = G_TLS_CERTIFICATE_GENERIC_ERROR;
+                  sk_ASN1_INTEGER_free (features);
+                  X509_free (cert);
+                  goto end;
+                }
+            }
+
+          sk_ASN1_INTEGER_free (features);
+          X509_free (cert);
+        }
+
+      /* not enabled, no error */
+      goto end;
+    }
+
+  ocsp_status = OCSP_response_status (resp);
+  if (ocsp_status != OCSP_RESPONSE_STATUS_SUCCESSFUL)
     {
       errors = G_TLS_CERTIFICATE_GENERIC_ERROR;
       goto end;
     }
 
-  chain_openssl = convert_certificate_chain_to_openssl (G_TLS_CERTIFICATE_OPENSSL (chain));
-  priv = g_tls_database_openssl_get_instance_private (self);
-  if ((chain_openssl == NULL) ||
-      (priv->store == NULL))
+  basic_resp = OCSP_response_get1_basic (resp);
+  if (basic_resp == NULL)
     {
       errors = G_TLS_CERTIFICATE_GENERIC_ERROR;
       goto end;
@@ -396,6 +432,9 @@ g_tls_database_openssl_verify_ocsp_response (GTlsDatabaseOpenssl *self,
     }
 
 end:
+  if (chain_openssl)
+    sk_X509_free (chain_openssl);
+
   if (basic_resp)
     OCSP_BASICRESP_free (basic_resp);
 
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 475285d..ab69da3 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -2635,7 +2635,7 @@ test_connection_binding_match_tls_unique (TestConnection *test,
  * please make sure the string below matches the output of
  * openssl x509 -outform der -in files/server.pem | openssl sha256 -binary | base64
  **/
-#define SERVER_CERT_DIGEST_B64 "kGOeAZnSeNtf5yzBZzUhbKFpW9qsPV+lIB/4t96OV+E="
+#define SERVER_CERT_DIGEST_B64 "+Kdi/G5P36Pzohv3xApyDKQk9aiN9vuPZoJchsydpm8="
 static void
 test_connection_binding_match_tls_server_end_point (TestConnection *test,
                                                     gconstpointer   data)
@@ -2772,6 +2772,59 @@ test_connection_binding_match_tls_exporter (TestConnection *test,
   g_assert_no_error (test->server_error);
 }
 
+static void
+test_connection_oscp_must_staple (TestConnection *test,
+                                  gconstpointer   data)
+{
+  GSocketClient *client;
+  GIOStream *connection;
+  GError *error = NULL;
+
+#ifdef BACKEND_IS_GNUTLS
+  g_test_skip ("OCSP Must-Staple is not supported with the gnutls backend");
+  return;
+#endif
+
+  g_setenv ("G_TLS_OPENSSL_OCSP_ENABLED", "1", TRUE);
+
+  test->database = g_tls_file_database_new (tls_test_file_path ("ca-roots.pem"), &error);
+  g_assert_no_error (error);
+  g_assert_nonnull (test->database);
+
+  start_async_server_service (test, G_TLS_AUTHENTICATION_NONE, WRITE_THEN_WAIT);
+
+  client = g_socket_client_new ();
+  connection = G_IO_STREAM (g_socket_client_connect (client, G_SOCKET_CONNECTABLE (test->address),
+                                                     NULL, &error));
+  g_assert_no_error (error);
+  g_object_unref (client);
+
+  test->client_connection = g_tls_client_connection_new (connection, test->identity, &error);
+  g_assert_no_error (error);
+  g_assert_nonnull (test->client_connection);
+  g_object_unref (connection);
+
+  g_tls_connection_set_database (G_TLS_CONNECTION (test->client_connection), test->database);
+
+  g_tls_client_connection_set_validation_flags (G_TLS_CLIENT_CONNECTION (test->client_connection),
+                                                G_TLS_CERTIFICATE_VALIDATE_ALL);
+
+  read_test_data_async (test);
+  g_main_loop_run (test->loop);
+
+  close_server_connection (test);
+  wait_until_server_finished (test);
+
+  g_unsetenv ("G_TLS_OPENSSL_OCSP_ENABLED");
+
+  /* The certificate states it supports status_request but our server does not
+   * actually set or suppor that, so it always errors. */
+  g_assert_error (test->read_error, G_TLS_ERROR, G_TLS_ERROR_BAD_CERTIFICATE);
+
+  g_clear_error (&test->read_error);
+  g_clear_error (&test->server_error);
+}
+
 static void
 test_connection_missing_server_identity (TestConnection *test,
                                          gconstpointer   data)
@@ -2949,6 +3002,7 @@ main (int   argc,
 
   g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
   g_setenv ("GIO_USE_TLS", BACKEND, TRUE);
+  g_unsetenv ("G_TLS_OPENSSL_OCSP_ENABLED");
 
   g_assert_true (g_ascii_strcasecmp (G_OBJECT_TYPE_NAME (g_tls_backend_get_default ()), "GTlsBackend" 
BACKEND) == 0);
 
@@ -3064,6 +3118,8 @@ main (int   argc,
               setup_connection, test_connection_binding_match_tls_server_end_point, teardown_connection);
   g_test_add ("/tls/" BACKEND "/connection/binding/match-tls-exporter", TestConnection, NULL,
               setup_connection, test_connection_binding_match_tls_exporter, teardown_connection);
+  g_test_add ("/tls/" BACKEND "/connection/oscp/must-staple", TestConnection, NULL,
+              setup_connection, test_connection_oscp_must_staple, teardown_connection);
 
   ret = g_test_run ();
 
diff --git a/tls/tests/file-database.h b/tls/tests/file-database.h
index 15b5716..5d29c00 100644
--- a/tls/tests/file-database.h
+++ b/tls/tests/file-database.h
@@ -1,4 +1,3 @@
-
 /* This is a generated file from update-test-database.py */
 
 #define ISSUER_DATA 
"\x30\x81\x86\x31\x13\x30\x11\x06\x0A\x09\x92\x26\x89\x93\xF2\x2C\x64\x01\x19\x16\x03\x43\x4F\x4D\x31\x17\x30\x15\x06\x0A\x09\x92\x26\x89\x93\xF2\x2C\x64\x01\x19\x16\x07\x45\x58\x41\x4D\x50\x4C\x45\x31\x1E\x30\x1C\x06\x03\x55\x04\x0B\x0C\x15\x43\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65\x20\x41\x75\x74\x68\x6F\x72\x69\x74\x79\x31\x17\x30\x15\x06\x03\x55\x04\x03\x0C\x0E\x63\x61\x2E\x65\x78\x61\x6D\x70\x6C\x65\x2E\x63\x6F\x6D\x31\x1D\x30\x1B\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x09\x01\x16\x0E\x63\x61\x40\x65\x78\x61\x6D\x70\x6C\x65\x2E\x63\x6F\x6D"
diff --git a/tls/tests/files/ca-alternative.pem b/tls/tests/files/ca-alternative.pem
index 3793a1a..30e1bc2 100644
--- a/tls/tests/files/ca-alternative.pem
+++ b/tls/tests/files/ca-alternative.pem
@@ -3,27 +3,27 @@ MIIFAjCCA+qgAwIBAgIB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ZIhvcNAQELBQADggEBABSrlQqoWp6reJsOYmlxUbDQJ5OuqcZuKEkn
-gscxFXeprhDD7eJmD8qHqFmfgM8e/tbnQw1xSOBgYpifVQRSij+TBWrJpX7980e7
-FKLPI5oOS/3geInW3Rs3EzfpGK1fKNR8mtTZj4hb0FnMpFXgiTYmRAeqQf3PCRge
-5Is8VP8eTtnzLi8gK8i8A97SOWyuqy/dzIz0UPthc0qvq5u7LR8sJZ901kWjBazq
-0KbZ/pyUrmLHaa07q8aU5Z1FPSH5l2PmtXtSfTvHBn8onG1LYF0WhjZ0qxsGvuRR
-9JX4dzGE2D8ub9f7B+ouF9hS6FIFujBNelk9dyirIgx+994qhPU=
+b20wDQYJKoZIhvcNAQELBQADggEBAKYEMjNB/t7HYtxpKm31I7VVWMPAh1b+0up8
+ysRPZhBsXpH7e9cYySTxog9TW/NasNkekXvgq/Sf+vCmftlH9kz6W8tL9yxp0lwm
+0P5ZVERBWJw4NlhAK1S8rYFKQRLquby/ti1oXwlVU4XZmH4oS8WvqxfHNEuxbRyj
+EAkyvaXH5KDaykgAFxNwQxc6SFhXqo+YhlOLhPZkfWUg/1qKeYxbP3dSYuJxfNF4
+akrMiwBlUpyxwzwvs8A9AcEvKXIfhyS8gJviAfUByyGe3xrHJoJG622Y3f43Hojm
+wAtFGcTM1hrBtUy7b/7rntGo7+TF0tWNghVPS1o0apkFTeGHTQw=
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/ca-key.pem b/tls/tests/files/ca-key.pem
index 1a42c34..ac2463a 100644
--- a/tls/tests/files/ca-key.pem
+++ b/tls/tests/files/ca-key.pem
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEApYUmJrkzkYlKePFNshb+HlGXT+5LuN6ThF+Tl+zL7aXE+Tr9
-r6t1Vc0e0sqYXyi4bxChxiv4xA28Z52GpK/wv5WJleXP/OH8MyTmbNBQ5KLnKuON
-Bs4nyh4QAraZcXjbHiY2I2YF1S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7
+8G1GFzzLE+fSHzCVPBKEFXc1rXmFovzqhi0eX0F8WBXrx3zda9wNRhZt+ppzNbL2
+bmSnlszBAoGBAPR3ibFarqsHYAWmGvVjsKb2g4iHpcEF48TZQ7haPR+fUqAYrKF5
+bSL4vaE5ea335KEzVrz10dnSBulQ4lGfX6ZjPmaueNrPB586Rtfu0Thhcj2SnpJ4
+ImvFrM9a+i38+PYwtwQ30YrpO5fUfWgVKZYaTpxWyddS3rW6IwAS1/ShAoGBAM45
+/KQtjWqiN95zJnUQTlyw/CkHy9wOZ27H6Ne4G+tPjlXY3Awsb+vZanboRtylHuPc
+f+PBcw5uxaou7b9Sp+V1Uxff53KCJMmQFCyT7hAr3Kad3bSthD0XmfW6w9Jczb6x
+/3Wi9gfPK/XqSJiFZdfv+PwU8RwAxl0ulkZBqcvjAoGBAKlx5YWBdknjTcH8lPj7
+RSkk+px6cQAuReZeNVslaPJvKwT+tUEi+etgf4etX9KeXOECxZ8pv2977QBw6L1s
+ew7IASuIyQnYr87ExO/Mf0XV/SoCY1jgXfNXS2VaCMgxbJqvv1r0GZBwArdFODsZ
+V/7LcytX2IUf0nAheTsG1JqhAoGBAMDf/ufWKsMmgLYuYDNwUrniVZRSVFm1pws3
+MRBAguwrdeXYcsV38h1VNHuNdmj6jc9y9LGgxekjtP8b8QPVXG4AsvxLTv4LtjhF
+5nhiym6Zdz7luus2tc0le7sVN/xRC6RkeZYeGZjoLCdNPSRY7w1sxSOOuooEN4ID
+Bk0jMJkdAoGBAKQiVofcu4lwgkjq8OxE8gESNHslhonJ11bjfVPX3w5wLLoAiEpV
+7K+WZ+VeZVMJDsvu48rivrlsbYBoPxdeTZAsN3mIJpjSVOyid3CWnM6QujiitZh3
+mRSER8mpyb6/2BSqz6NSfQVj7HihPPfATyVYXwQ5NixdgfhFlYAO87PV
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/ca-roots-bad.pem b/tls/tests/files/ca-roots-bad.pem
index 1cceb7a..fab9547 100644
--- a/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bTAZBgNVHRIE
-EjAQgQ5jYUBleGFtcGxlLmNvbTANBgkqhkiG9w0BAQsFAAOCAQEAiUkWAtz07x28
-KiIulj7uhjFuSsylbj4SuMRdZcaGJjZumAlOrO1wc6GK2qz/Vd14lBiPAMm5t0np
-BkTNfRb5euIY6gBZ7LSJYEsOZmYfYPGv1nt5A5XtljaI40ojU6vqAfRUYGYd9OrU
-GzoL7CQv8PG8W1tITWdIi3pv9vDjZqxPj2umM39fH7Xh3Mb20nx2tHQaMfSGjjW4
-ASzr0XSRA3HroTQrbxvUtpijHpzMajqOub0DcSFs7Kk0Rb6Ja+WzH2ALT0LInt2r
-NvfKjk9Abd2rjqFMaYc9rCtqjbq4FQC3ymlDBDsbMC8qsByHAjDBiox+qSGZZTjS
-MbJ0cWIRVg==
+EjAQgQ5jYUBleGFtcGxlLmNvbTANBgkqhkiG9w0BAQsFAAOCAQEAigZ/TRrfC96y
+okSVzm/GkJLt0VppiKeZ5P9h0Qb+T5Aa/rHnYFJYobPoE07T8kZoUVDy+WJVNj5n
+GYvf+m3UxuyrnSR71a+2PiZtCpTBpJetVWJjVQKc4Tai6A9t48jvdch4gxo+4dKh
+XjlQ8PFt3LGG/E+icxRP50EunoPwNFVIuTLW7yoC7DeKlidj28a1/X7zeMqGi8nj
+3BlsWRM1giAJ5lfNjQtdo0o5XxYS8hX6AcRoGSXIp+Cqv19nrZEAfIhkmHfPISVM
+f1cDbnpNKTOFeWp5TO3kKN9zuJ1R6GO/YmoNVPQQotcYhXweZdfbypz9iviNgIJc
+lm9VyazIkA==
 -----END CERTIFICATE-----
 -----BEGIN CERTIFICATE-----
 MIIHPTCCBSWgAwIBAgIBADANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQQKEwdSb290
diff --git a/tls/tests/files/ca-roots.pem b/tls/tests/files/ca-roots.pem
index 0d2d24c..6d40255 100644
--- a/tls/tests/files/ca-roots.pem
+++ b/tls/tests/files/ca-roots.pem
@@ -1,33 +1,33 @@
 These are some CA certificates
 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CAQEAiUkWAtz07x28
-KiIulj7uhjFuSsylbj4SuMRdZcaGJjZumAlOrO1wc6GK2qz/Vd14lBiPAMm5t0np
-BkTNfRb5euIY6gBZ7LSJYEsOZmYfYPGv1nt5A5XtljaI40ojU6vqAfRUYGYd9OrU
-GzoL7CQv8PG8W1tITWdIi3pv9vDjZqxPj2umM39fH7Xh3Mb20nx2tHQaMfSGjjW4
-ASzr0XSRA3HroTQrbxvUtpijHpzMajqOub0DcSFs7Kk0Rb6Ja+WzH2ALT0LInt2r
-NvfKjk9Abd2rjqFMaYc9rCtqjbq4FQC3ymlDBDsbMC8qsByHAjDBiox+qSGZZTjS
-MbJ0cWIRVg==
+EjAQgQ5jYUBleGFtcGxlLmNvbTANBgkqhkiG9w0BAQsFAAOCAQEAigZ/TRrfC96y
+okSVzm/GkJLt0VppiKeZ5P9h0Qb+T5Aa/rHnYFJYobPoE07T8kZoUVDy+WJVNj5n
+GYvf+m3UxuyrnSR71a+2PiZtCpTBpJetVWJjVQKc4Tai6A9t48jvdch4gxo+4dKh
+XjlQ8PFt3LGG/E+icxRP50EunoPwNFVIuTLW7yoC7DeKlidj28a1/X7zeMqGi8nj
+3BlsWRM1giAJ5lfNjQtdo0o5XxYS8hX6AcRoGSXIp+Cqv19nrZEAfIhkmHfPISVM
+f1cDbnpNKTOFeWp5TO3kKN9zuJ1R6GO/YmoNVPQQotcYhXweZdfbypz9iviNgIJc
+lm9VyazIkA==
 -----END CERTIFICATE-----
 
 GLib shouldn't care about this comment
diff --git a/tls/tests/files/ca.pem b/tls/tests/files/ca.pem
index d5747af..61c5c97 100644
--- a/tls/tests/files/ca.pem
+++ b/tls/tests/files/ca.pem
@@ -1,29 +1,29 @@
 -----BEGIN CERTIFICATE-----
-MIIE4zCCA8ugAwIBAgIUPrOu4wcojkaOfTH+GFqYZQIeXrAwDQYJKoZIhvcNAQEL
+MIIE4zCCA8ugAwIBAgIUdTULzUuCznAg2ojZDMwqvQmD594wDQYJKoZIhvcNAQEL
 B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Qv8PG8W1tITWdIi3pv9vDjZqxPj2umM39fH7Xh3Mb20nx2tHQaMfSGjjW4
-ASzr0XSRA3HroTQrbxvUtpijHpzMajqOub0DcSFs7Kk0Rb6Ja+WzH2ALT0LInt2r
-NvfKjk9Abd2rjqFMaYc9rCtqjbq4FQC3ymlDBDsbMC8qsByHAjDBiox+qSGZZTjS
-MbJ0cWIRVg==
+EjAQgQ5jYUBleGFtcGxlLmNvbTANBgkqhkiG9w0BAQsFAAOCAQEAigZ/TRrfC96y
+okSVzm/GkJLt0VppiKeZ5P9h0Qb+T5Aa/rHnYFJYobPoE07T8kZoUVDy+WJVNj5n
+GYvf+m3UxuyrnSR71a+2PiZtCpTBpJetVWJjVQKc4Tai6A9t48jvdch4gxo+4dKh
+XjlQ8PFt3LGG/E+icxRP50EunoPwNFVIuTLW7yoC7DeKlidj28a1/X7zeMqGi8nj
+3BlsWRM1giAJ5lfNjQtdo0o5XxYS8hX6AcRoGSXIp+Cqv19nrZEAfIhkmHfPISVM
+f1cDbnpNKTOFeWp5TO3kKN9zuJ1R6GO/YmoNVPQQotcYhXweZdfbypz9iviNgIJc
+lm9VyazIkA==
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/chain.pem b/tls/tests/files/chain.pem
index 95c96e4..6de9b10 100644
--- a/tls/tests/files/chain.pem
+++ b/tls/tests/files/chain.pem
@@ -3,78 +3,78 @@ MIIDuzCCAqOgAwIBAgIBATANBgkqhkiG9w0BAQsFADCBrTETMBEGCgmSJomT8ixk
 ARkWA0NPTTEXMBUGCgmSJomT8ixkARkWB0VYQU1QTEUxKzApBgNVBAsMIkludGVy
 bWVkaWF0ZSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxJDAiBgNVBAMMG2ludGVybWVk
 aWF0ZS1jYS5leGFtcGxlLmNvbTEqMCgGCSqGSIb3DQEJARYbaW50ZXJtZWRpYXRl
-LWNhQGV4YW1wbGUuY29tMB4XDTIwMTAxMjE3NDk1MVoXDTQ1MTAwNjE3NDk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tai6A9t48jvdch4gxo+4dKh
+XjlQ8PFt3LGG/E+icxRP50EunoPwNFVIuTLW7yoC7DeKlidj28a1/X7zeMqGi8nj
+3BlsWRM1giAJ5lfNjQtdo0o5XxYS8hX6AcRoGSXIp+Cqv19nrZEAfIhkmHfPISVM
+f1cDbnpNKTOFeWp5TO3kKN9zuJ1R6GO/YmoNVPQQotcYhXweZdfbypz9iviNgIJc
+lm9VyazIkA==
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/client-and-key.pem b/tls/tests/files/client-and-key.pem
index 1565e9d..86b5c80 100644
--- a/tls/tests/files/client-and-key.pem
+++ b/tls/tests/files/client-and-key.pem
@@ -2,47 +2,47 @@
 MIIDXTCCAkUCAQMwDQYJKoZIhvcNAQELBQAwgYYxEzARBgoJkiaJk/IsZAEZFgND
 T00xFzAVBgoJkiaJk/IsZAEZFgdFWEFNUExFMR4wHAYDVQQLDBVDZXJ0aWZpY2F0
 ZSBBdXRob3JpdHkxFzAVBgNVBAMMDmNhLmV4YW1wbGUuY29tMR0wGwYJKoZIhvcN
-AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0yMDEwMTIxNzQ5NDVaFw00NTEwMDYxNzQ5
-NDVaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
+AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0yMTA2MjEwMjE1MzJaFw00NjA2MTUwMjE1
+MzJaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
 UExFMQ8wDQYDVQQDDAZDbGllbnQxITAfBgkqhkiG9w0BCQEWEmNsaWVudEBleGFt
-cGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALB/QctPIfpb
-onzUr4bxSANLsAWPoLyE8a1h2WUz2NJxtSjk0Ch531bGtlXxIMzGeUgJ0WwUh15L
-BJxm6vHcVVar1iV3JUf0XW4Wk0cYmpS36P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w7XCb39nrEsegTfJpQRRtGbqf9+djqhKnoWArSCIV0Kx
+echPIzbw4iR7eZ+t8hSBiQKBgEUbwF9AimtJeslx5lDzEdkK7qvuKTZiGE3JiuUQ
+i479VzzrnN+vKBG6MEzc3cl4UBmtNAaJffE8YzgQQfkMshilphRyIxNJafg98qvB
+iks0eVuTet9Myn6xrttm732dZLSSRFfoGFHqeKU3zt1HwWmvsn/S5QCknzzsmklZ
+pT7xAoGAJ6+7+slyW2iOEn1vfEp81OSr659fjWtjf5/ry6JNf+nmsPHNxgKeFQd4
+Nb6/ILRtadx82Vz4yLkCFr5XXedP19NJ67wF/ZNHOWDZstMcu/WzMj3vubryHXkC
+mV6vHaNgcK7LGv6hKXkBkzFjFgAfDdL1uFmglAEuoYeK8+jcWuA=
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/client-csr.pem b/tls/tests/files/client-csr.pem
new file mode 100644
index 0000000..75884fd
--- /dev/null
+++ b/tls/tests/files/client-csr.pem
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIICpzCCAY8CAQAwYjETMBEGCgmSJomT8ixkARkWA0NPTTEXMBUGCgmSJomT8ixk
+ARkWB0VYQU1QTEUxDzANBgNVBAMMBkNsaWVudDEhMB8GCSqGSIb3DQEJARYSY2xp
+ZW50QGV4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
+r30/uSZFsOzosBNgG9hFpgKqsaJGj80TkPiJE6qk4gBnvyYGoZGnaP0SFIYx8AhU
+uZaCDNBgTC0UyK9IBxUJr1ReZUQUp5zTbxyZoD231q64r9ope87DJloY+67Hrh8M
+7gj0vFLd/eTWeoSs90Bf5sVNg9R7uPfXWVifkcfv7nmmAondO50dTVjgMuh1kogm
+85pmu8NVy331eQ1DaJiqO97bwHlzBCZOdl2GGBZEFxTk92tD9M/rIzCcdik0ytWU
+av0uP1ZvbkpN1k0wtKlh5uARlxkdofa+2MX5VEPPqeCRND6lJ9EE/Iz5KYeMSc1L
+n5fAo2nLN0XvU0FzKRi1AwIDAQABoAAwDQYJKoZIhvcNAQELBQADggEBADWaRWCM
+3qQe5V2fFz9QXy8NLsx0y67fcEokfGCcLEM+UEXUa2lrJPsHmSx4iBIHlAtTUqA3
+bEqOK8zIstkrAiloygJuW6BS2UUQGwo7ddb+LCYWlv4CefgDcohpnoGFmHd+kC4j
+x+lZLd8IgFLcaXyxzveRyQpGSYIFvn+4/Qjx5wWhZZ6Fdti+RS6NXK7v7SIgy1lp
++wuhgEFbUoVUuTo6cASK6bSIhVq/F0HhkGGgnS4LzMRU5FUeD9GiWLc/s+v5oOC0
+i7kJ/ArFHbJ/j8S2LsS+eOrb+D6W2Ll7BoIWxywOy0I5jPFuKjr0P4VFukZ5mXs6
+0+cSNXqmHcVfU8w=
+-----END CERTIFICATE REQUEST-----
diff --git a/tls/tests/files/client-future.pem b/tls/tests/files/client-future.pem
index eb149fe..c4dea2d 100644
--- a/tls/tests/files/client-future.pem
+++ b/tls/tests/files/client-future.pem
@@ -7,17 +7,17 @@ ZSBBdXRob3JpdHkxFzAVBgNVBAMMDmNhLmV4YW1wbGUuY29tMR0wGwYJKoZIhvcN
 AQkBFg5jYUBleGFtcGxlLmNvbTAiGA8yMDYwMDcxNzIzMDAwMFoYDzIwNjEwNzE3
 MjMwMDAwWjBiMRMwEQYKCZImiZPyLGQBGRYDQ09NMRcwFQYKCZImiZPyLGQBGRYH
 RVhBTVBMRTEPMA0GA1UEAwwGQ2xpZW50MSEwHwYJKoZIhvcNAQkBFhJjbGllbnRA
-ZXhhbXBsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwf0HL
-TyH6W6J81K+G8UgDS7AFj6C8hPGtYdllM9jScbUo5NAoed9WxrZV8SDMxnlICdFs
-FIdeSwScZurx3FVWq9YldyVH9F1uFpNHGJqUt+j12vZtKUAF4M2p24eZuRVpxqTu
-EGUu3Tu2GJm1Tu5cCJE9we3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XafvQ47NgHJULRYd9hKhAZL/dWAi6tpz2Bxgc9g
+cpB+B/nT9BV30YbuTTmBxwBHb0EVMAES46iG9a47FfpaMb6ss3I3pD3UIL226hJR
+U9BSSsTx4gTPDNY0UFQQupemXAtB224dhqpqDOW7jaiaH3U2xmOUin/W4OH/EiKU
+hVXAQ9zb2LsuaTt4zMicS/MTfQoOn4KG0dEsBsmDL8gwPREHQcxJFxS8na7LT87Z
+U9I77zSBBaM2CLn6hUqRhZafsiR06VsLBVQdlnHRAiqZerxqveCHimeyTBA2GD2W
+wmmvsKY=
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/client-key.pem b/tls/tests/files/client-key.pem
index e048c82..7578d40 100644
--- a/tls/tests/files/client-key.pem
+++ b/tls/tests/files/client-key.pem
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEogIBAAKCAQEAsH9By08h+luifNSvhvFIA0uwBY+gvITxrWHZZTPY0nG1KOTQ
-KHnfVsa2VfEgzMZ5SAnRbBSHXksEnGbq8dxVVqvWJXclR/RdbhaTRxialLfo9dr2
-bSlABeDNqduHmbkVacak7hBlLt07thiZtU7uXAiRPcHt3DeAJ4x7KpIluBecFEHv
-NV9/+Vb+vTMnUwXcBkekM/XsIcrXvkwGFrb0Op+weR+pCBrR4hH29OpIHB76bvXu
-kuAOhzbdKB8d+wj7wXT25P4YSjLsavUK9PyYKQ4fKDzIMibSHsDPWGO9Q8Zbs/0+
-hgEJy2jQ6Nw4/BMVUvx2Bfxvq/604S9AQoht9wIDAQABAoIBADjXIudI+tZYAIJX
-NJguyFRXYb7IvKk532NJKewPwHo1qHQdDHScmzKlGD+hQkDwgkqS7uDx046odjmw
-Y2W04b7h5Dt4nYcIybYUiyXQZKgUenADLm2FZVr/RPy4+HinRKAmGyOYIB3xnbNN
-RONBIj59e9j5xZKwRRN3iIrzOjaIynF6RkvPf55u3sU4DQLASo/nTkHQZ3YE1H1k
-EeRqR0744n7VIwObGWqj+N+2PPrGz5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enUwJ+GW3Ty5Ix8go+U00eYwRmLakVDTvlciLLrC6J2zsjLN
+9tjDNrNKeqpkr+bIha7nw7XCb39nrEsegTfJpQRRtGbqf9+djqhKnoWArSCIV0Kx
+echPIzbw4iR7eZ+t8hSBiQKBgEUbwF9AimtJeslx5lDzEdkK7qvuKTZiGE3JiuUQ
+i479VzzrnN+vKBG6MEzc3cl4UBmtNAaJffE8YzgQQfkMshilphRyIxNJafg98qvB
+iks0eVuTet9Myn6xrttm732dZLSSRFfoGFHqeKU3zt1HwWmvsn/S5QCknzzsmklZ
+pT7xAoGAJ6+7+slyW2iOEn1vfEp81OSr659fjWtjf5/ry6JNf+nmsPHNxgKeFQd4
+Nb6/ILRtadx82Vz4yLkCFr5XXedP19NJ67wF/ZNHOWDZstMcu/WzMj3vubryHXkC
+mV6vHaNgcK7LGv6hKXkBkzFjFgAfDdL1uFmglAEuoYeK8+jcWuA=
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/client-past.pem b/tls/tests/files/client-past.pem
index 66ae45e..fda4927 100644
--- a/tls/tests/files/client-past.pem
+++ b/tls/tests/files/client-past.pem
@@ -7,17 +7,17 @@ ZSBBdXRob3JpdHkxFzAVBgNVBAMMDmNhLmV4YW1wbGUuY29tMR0wGwYJKoZIhvcN
 AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0wMDA3MTcyMzAwMDBaFw0wMTA3MTcyMzAw
 MDBaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
 UExFMQ8wDQYDVQQDDAZDbGllbnQxITAfBgkqhkiG9w0BCQEWEmNsaWVudEBleGFt
-cGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALB/QctPIfpb
-onzUr4bxSANLsAWPoLyE8a1h2WUz2NJxtSjk0Ch531bGtlXxIMzGeUgJ0WwUh15L
-BJxm6vHcVVar1iV3JUf0XW4Wk0cYmpS36PXa9m0pQAXgzanbh5m5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RPhOloIvs7v1bhW6nctf9hjpiLOPAfpc7hTeNn5mZKTxmuPUHRf/wlBCwA9Oa
+u2W14O2To/KG2cjdgKRzcBa1n7cD4Yho/48bOlFPzs7WMuLhcdz2o6ZbQS6X0dWh
+mW4gu/C0xHBLGS5LGpZdUPhnVyc9r2xiDfy2BnsR6O20npqs6tCVR95EGUgs2x6w
+He98eIQ370tXjryW+uYni7MOvqRKUeaJAdrSLTrYXN5pxVWX+h7NqbqkCJj1cqQt
+O/dTBZdsTeR/k2tyr92mgBcC8/rp/4Qz9XaokT512OIQsBLID+mE4BIRLt2NXJVk
+Fw==
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/client.pem b/tls/tests/files/client.pem
index 2551a6e..ab08528 100644
--- a/tls/tests/files/client.pem
+++ b/tls/tests/files/client.pem
@@ -2,20 +2,20 @@
 MIIDXTCCAkUCAQMwDQYJKoZIhvcNAQELBQAwgYYxEzARBgoJkiaJk/IsZAEZFgND
 T00xFzAVBgoJkiaJk/IsZAEZFgdFWEFNUExFMR4wHAYDVQQLDBVDZXJ0aWZpY2F0
 ZSBBdXRob3JpdHkxFzAVBgNVBAMMDmNhLmV4YW1wbGUuY29tMR0wGwYJKoZIhvcN
-AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0yMDEwMTIxNzQ5NDVaFw00NTEwMDYxNzQ5
-NDVaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
+AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0yMTA2MjEwMjE1MzJaFw00NjA2MTUwMjE1
+MzJaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
 UExFMQ8wDQYDVQQDDAZDbGllbnQxITAfBgkqhkiG9w0BCQEWEmNsaWVudEBleGFt
-cGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALB/QctPIfpb
-onzUr4bxSANLsAWPoLyE8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TQ+pSfRBPyM+SmHjEnNS5+XwKNpyzdF
+71NBcykYtQMCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAIbPHl+djRBtDli7r6TI/
+gvsqCEBKJ7DWdamxHjoMLG6JxOjyQiQ2qSHJLosilFBeOzVIMxvP0ac26roBOk3g
+rgWpYKse2dGcX4o9bcUvkC8OPaoevXecFO7mNCztrB/hFc4zqKiqRLSfxlnLKDbq
+xNeGju4JHDc3q+KGXDe1eb1xDGydNk4dXYLegdyocUEw8l76BReadqbD/bBPmf28
+qlQpOnQ3Phjbb8r7YSGt2GZbiv/IQ2zly54xOnyB1lGqkNPDX+DDbpqYSHiaRq5q
+Cp/8UkeENY6tv+nLbwQx1rhvvt4eOd0aLgcTFTmZJdXrSHRznsVg3M938VSDgaBU
+dA==
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/client2-and-key.pem b/tls/tests/files/client2-and-key.pem
index 987369c..3f87479 100644
--- a/tls/tests/files/client2-and-key.pem
+++ b/tls/tests/files/client2-and-key.pem
@@ -2,47 +2,47 @@
 MIIDXTCCAkUCAQYwDQYJKoZIhvcNAQELBQAwgYYxEzARBgoJkiaJk/IsZAEZFgND
 T00xFzAVBgoJkiaJk/IsZAEZFgdFWEFNUExFMR4wHAYDVQQLDBVDZXJ0aWZpY2F0
 ZSBBdXRob3JpdHkxFzAVBgNVBAMMDmNhLmV4YW1wbGUuY29tMR0wGwYJKoZIhvcN
-AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0yMDEwMTIxNzQ5NTFaFw00NTEwMDYxNzQ5
-NTFaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
+AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0yMTA2MjEwMjE1MzJaFw00NjA2MTUwMjE1
+MzJaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
 UExFMQ8wDQYDVQQDDAZDbGllbnQxITA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kN/uSm8yEF/i/fENscQMrpXx1bSodxhpMnVcUyzOQKLD5TJUyb78
+uzcuhtPyElEP7EIe25HwwwT7cRLDl0u0SGuMvsMCgYEA0nKcPtqHELYgxdCOAsg6
+gYq0sGQItNPvYe+GjloWuOtL6ZgefSn9ZP8nzE63+zjL8GbawQAh1DOz8eek+N67
+6Xkzfh6pcq0HdqTF6DBV5yFGnZnmHhtQsDU6OgEIhWYx0O2leyvVS1V2Z0cEELgs
+1wnR/cZtJZcRz8YHnG9Aq2kCgYAvgZtFOIPsN2G1qxhJCdsSF7O2GFl05D8ik2W4
+Asiuy12NxSPO/rlqvAYrDbh/r5LsQ77uxqlWsvOrDPJQ3Okgelx/VFSFpW7kLnoj
+niGtHBUmUg3mWV8okNLMZvVFJH6F6VHMSXNUylLBEiqcqUfZT3efoh8wZQhE4MmF
+C4/+zwKBgC1szMqrSjghpy/RFHJAwV/KIaTV3bI0E/80AW+YT/jJw982xe1ltq/X
+cufXEdAMT/oETmmNTREwONmteGTliDcOFzIbCi7w9YtR+TWfsrmx9ZCQHESRymSj
+LCw2/pz5jcjas6IIsmlxE/poF3MoHm+kZjUkt7QundPSBLJhYjgW
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/client2-csr.pem b/tls/tests/files/client2-csr.pem
new file mode 100644
index 0000000..e4e1b1c
--- /dev/null
+++ b/tls/tests/files/client2-csr.pem
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIICpzCCAY8CAQAwYjETMBEGCgmSJomT8ixkARkWA0NPTTEXMBUGCgmSJomT8ixk
+ARkWB0VYQU1QTEUxDzANBgNVBAMMBkNsaWVudDEhMB8GCSqGSIb3DQEJARYSY2xp
+ZW50QGV4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
+uF/D3I34BEL6Q3VZsPI4CqISDFMGd3EMXJfBt08M+k7J+qhqXTGWMK/6OheWce0P
+SfrJecMsvc6JGDWlLiwFACgb6e7fewOaRW9RG/5kHQBcOiuUZZOq0vRU9qVFL0yR
+K9cpH1AVzrQChjVTtEVkKw4+mD1TZf+xNClNfwAKpY7g86qCoC9+bgJ1Svhb4Xm/
+kb9baQF6CK5cCizCZqDlf3+YexIZVO8MeNfbFHN7fSXHp9Ahca+69rF32hi4L5hq
+kHiTogAvO3A9ncctb5U95MRyh35g85EymqOSn4nDALqhLl7nZG2k7/jseWYI08tf
+Atxfl0aAMLWiPde8xGisjwIDAQABoAAwDQYJKoZIhvcNAQELBQADggEBAEYLfA4F
+SOcmEJgoLhuBa3Kf6z0ACMbnIAU8nq8ijeY4nOlQCeizwXLV7NECczcUl7Qyo6gq
+m99y1BqrM1Pk4SCXf4RYemtv8bZCXRbJjPMZOsiwTr8CJzug+LXIljDUx4ISQOxs
+FDeF9DLNxaTkXbYmuAoc8TSagn5hMT/UnBYwdaK/Q3CqMcSaYjRvmO/T1mecNVEw
+BVqllpiFjavrDW06HB4ij+ibVVzfog4l9ZgXglKbg7GKvjMYDmrpqlDGvD6UDagN
+P+6x3eDUuiIrZCUCMTkgStB81+lDGH5k4TQqFfUNAmeadYMcNjCrqoD4yfagIvk6
+PMT2pKs6ama/hGo=
+-----END CERTIFICATE REQUEST-----
diff --git a/tls/tests/files/client2-key.pem b/tls/tests/files/client2-key.pem
index 987c866..8017082 100644
--- a/tls/tests/files/client2-key.pem
+++ b/tls/tests/files/client2-key.pem
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEowIBAAKCAQEAxV2aZTUpjegwiAltyRR+bu7L/YFr/rQ15kMBbPahlJl6IDrm
-7sPTDQNgpx45/Zu1Rjqlf1HvG4eNuHzO1XbFH3eqolHLZH8mGxbVceB+1YoutvFQ
-n0oU3zHJS0QJJE4gLJpoGXnvuHuE/SJ+YK5br40nwVCB/PC5Yyx5PnLa7TW1Q8eY
-XZKoQy+itV+hVRiOx2XnqNbGUnm/wPuG1lsDB9TRdjdeN0x4I6DX9zLtEo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+1IEmeOwJrrBHRh
+UHvvIoUueLrzpYOikshrf/n4120AM0a4AscnjaNhtkogYXmMJtndfzVcT2hNVppG
+ckal/WDxK+iSO5PSqyGzrKUfQdRrRf43IeaZJE10RkKJMEnSYfxRlkUCgYEAy3OX
+hq328fyE6SUv7hpEFcszZ29SgpzzFRqWP2kNKJFpfmW0J3SOWkJLXULKV0q0O5lW
+x95G2i5g03YtkN/uSm8yEF/i/fENscQMrpXx1bSodxhpMnVcUyzOQKLD5TJUyb78
+uzcuhtPyElEP7EIe25HwwwT7cRLDl0u0SGuMvsMCgYEA0nKcPtqHELYgxdCOAsg6
+gYq0sGQItNPvYe+GjloWuOtL6ZgefSn9ZP8nzE63+zjL8GbawQAh1DOz8eek+N67
+6Xkzfh6pcq0HdqTF6DBV5yFGnZnmHhtQsDU6OgEIhWYx0O2leyvVS1V2Z0cEELgs
+1wnR/cZtJZcRz8YHnG9Aq2kCgYAvgZtFOIPsN2G1qxhJCdsSF7O2GFl05D8ik2W4
+Asiuy12NxSPO/rlqvAYrDbh/r5LsQ77uxqlWsvOrDPJQ3Okgelx/VFSFpW7kLnoj
+niGtHBUmUg3mWV8okNLMZvVFJH6F6VHMSXNUylLBEiqcqUfZT3efoh8wZQhE4MmF
+C4/+zwKBgC1szMqrSjghpy/RFHJAwV/KIaTV3bI0E/80AW+YT/jJw982xe1ltq/X
+cufXEdAMT/oETmmNTREwONmteGTliDcOFzIbCi7w9YtR+TWfsrmx9ZCQHESRymSj
+LCw2/pz5jcjas6IIsmlxE/poF3MoHm+kZjUkt7QundPSBLJhYjgW
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/client2.pem b/tls/tests/files/client2.pem
index b034024..a1e87f8 100644
--- a/tls/tests/files/client2.pem
+++ b/tls/tests/files/client2.pem
@@ -2,20 +2,20 @@
 MIIDXTCCAkUCAQYwDQYJKoZIhvcNAQELBQAwgYYxEzARBgoJkiaJk/IsZAEZFgND
 T00xFzAVBgoJkiaJk/IsZAEZFgdF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nw0yailolX+Y7dw2SbQ/8iTFmVQ
-CN6btbpR6PdnF0Ja7mnnVk5GNJh28bbPLvI399PvUJrqlsvcfN5VMVB9IfpQUx9Z
-39hl55qnABIVjWTK/CWIehjpy4306RCe6ug4Szqt61INqeODfPpntRSCGCR3/6uo
-pw==
+cGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALhfw9yN+ARC
++kN1WbDyOAqiEgxTBndxDFyXwbdPDPpOyfqoal0xljCv+joXlnHtD0n6yXnDLL3O
+iRg1pS4sBQAoG+nu33sDmkVvURv+ZB0AXDorlGWTqtL0VPalRS9MkSvXKR9QFc60
+AoY1U7RFZCsOPpg9U2X/sTQpTX8ACqWO4POqgqAvfm4CdUr4W+F5v5G/W2kBegiu
+XAoswmag5X9/mHsSGVTvDHjX2xRze30lx6fQIXGvuvaxd9oYuC+YapB4k6IALztw
+PZ3HLW+VPeTEcod+YPORMpqjkp+JwwC6oS5e52RtpO/47HlmCNPLXwLcX5dGgDC1
+oj3XvMRorI8CAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAh7xYnBOzAgMgEV5TWz/O
+psTna17oKbvnkpPmOaSZiZ8Z7XavSTGGEH0o41siLCC/Nv4XPbO7l2TmY8u1WJoS
+9e7pRkexSRFg/GF84cgJ8ww5VzOd2CrnXGDOda4xgOQ/BUsLN67JGVUh+AcPZ4Xs
+4J8OpS+VuokS6tkK2BCdYc1qfmEpoB2lZdRaIdWGY8zQX0G/ZzvjsjSk4vQ22m40
+UM2gJiDP9LEmYimMP5ew/QBLsv3Vm90mZ6ObIx26TwLD6wlxNd8o/3ntdgS9+YTH
+8MnnUlE81Hp9FYOhw6jDdfKJaGAI0LWe7RHwOCTDy5pzhpDQgl/KGtfE7da1h2xA
+rQ==
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/intermediate-ca-csr.pem b/tls/tests/files/intermediate-ca-csr.pem
index 0557eed..e59ebfb 100644
--- a/tls/tests/files/intermediate-ca-csr.pem
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tls/tests/files/intermediate-ca-key.pem b/tls/tests/files/intermediate-ca-key.pem
index 28f2407..9ca5dae 100644
--- a/tls/tests/files/intermediate-ca-key.pem
+++ b/tls/tests/files/intermediate-ca-key.pem
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEA0SJHppoZV2EgEJMkNsHQoGMBi7V/micrd36Z4qSn8rlXYN5q
-2e6mOoSQryoTPOXxrzVhuUaD+TSaCENAwD5Gb0849U26BTC46XOV86yFW41FUYyH
-5K+7tJrzL754yJCdZiTedARMZrQL7gvDH+SEh9cnhBDRJYTdEOQ0tLTnbNFd7JOw
-6e8VG2cvDdnitBYmt0m29wcgvnfiMSxHwH/qyF5ibe4v426kf412JaepYWCWu85s
-bgOLKSLUDu7VIcgEzB1zWwe7vIOsqytOKOo9tCl1GuKneMdEAyMf4oXN5RolHyGW
-chSDBy13DqSAbs59A+rWFa1+kjyYngIWG7Hf9wIDAQABAoIBAQCM6WoZyW8Vvy2Z
-vWsDMiheSRd7iTmHJqlVBIqveX5oP5WugW7BlNmQSE4smE8KE217Pp6v9eFqgpTe
-yGHSpqNS0LByKIMUiDWvpt/8pdvdShzQy72syvPQxy7glphPm5FSh7kTtum7scjw
-BiDdVl4uITxQ8fvaKeHCReF1eQcN+/PypNxxkSumXU+w0skCw8WnroJlPFeR3KzG
-2mu1cE59Xlf5lUPSOY5luKYxz8uUzeWQS6ImOyo+HD/nVRXTYSYXPSCq9Rwcn4Xo
-FtG5T18CuRQw+/U/s+9EvQ9wELUPxOtvsvzBSbxStPR3FLCrmyPAkg5WSzsMTL15
-H0SpWo+hAoGBAPOOFNgPtXUQlzBgOSficZA4CAAsKHQJxsyLpp9g+pn0ctQsA4Jo
-GPHZyZfAmpIhKaplN9dupRx7r59eOspIz8tWYJFo8Uo2ateMH+5Gx4WE63wA5VVi
-nTazX2sDsBpClo3liVJn8kMD8CmM7WJx9FJUrJDQne/QAyDIOVlVLnlpAoGBANvR
-8IP3B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+x9G+oQKBgCC/NuDOjecyfvefa9G2E+chRdxBgzIc0ymJ4YCLtInpSIpW5Z+5IL50
+zyVLzofEMlesbno7fjbYNlqBoixuock5U/GDA9x4uL5UfMQHDTt29ochky9hlgIk
+SKTjJ2/6yvCz7Xy+Budw4OQkOvCIuMH23Ea45VNK192sxX6RUnyQ
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/intermediate-ca.pem b/tls/tests/files/intermediate-ca.pem
index c5829fe..6f36e2c 100644
--- a/tls/tests/files/intermediate-ca.pem
+++ b/tls/tests/files/intermediate-ca.pem
@@ -2,28 +2,28 @@
 MIIFAjCCA+qgAwIBAgIBBzANBgkqhkiG9w0BAQsFADCBhjETMBEGCgmSJomT8ixk
 ARkWA0NPTTEXMBUGCgmSJomT8ixkARkWB0VYQU1QTEUxHjAcBgNVBAsMFUNlcnRp
 ZmljYXRlIEF1dGhvcml0eTEXMBUGA1UEAwwOY2EuZXhhbXBsZS5jb20xHTAbBgkq
-hkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMB4XDTIwMTAxMjE3NDk1MVoXDTQ1MTAw
-NjE3NDk1MVowga0xEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZ
+hkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMB4XDTIxMDYyMTAyMTUzMloXDTQ2MDYx
+NTAyMTUzMlowga0xEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZ
 FgdFWEFNUExFMSswKQYDVQQLDCJJbnRlcm1lZGlhdGUgQ2VydGlmaWNhdGUgQXV0
 aG9yaXR5MSQwIgYDVQQDDBtpbnRlcm1lZGlhdGUtY2EuZXhhbXBsZS5jb20xKjAo
 BgkqhkiG9w0BCQEWG2ludGVybWVkaWF0ZS1jYUBleGFtcGxlLmNvbTCCASIwDQYJ
-KoZIhvcNAQEBBQADggEPADCCAQoCggEBANEiR6aaGVdhIBCTJDbB0KBjAYu1f5on
-K3d+meK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ik18LM=
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/non-ca.pem b/tls/tests/files/non-ca.pem
index e08453c..b96c38a 100644
--- a/tls/tests/files/non-ca.pem
+++ b/tls/tests/files/non-ca.pem
@@ -3,22 +3,22 @@ client.pem:
 MIIDXTCCAkUCAQMwDQYJKoZIhvcNAQELBQAwgYYxEzARBgoJkiaJk/IsZAEZFgND
 T00xFzAVBgoJkiaJk/IsZAEZFgdFWEFNUExFMR4wHAYDVQQLDBVDZXJ0aWZpY2F0
 ZSBBdXRob3JpdHkxFzAVBgNVBAMMDmNhLmV4YW1wbGUuY29tMR0wGwYJKoZIhvcN
-AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0yMDEwMTIxNzQ5NDVaFw00NTEwMDYxNzQ5
-NDVaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
+AQkBFg5jYUBleGFtcGxlLmNvbTAeFw0yMTA2MjEwMjE1MzJaFw00NjA2MTUwMjE1
+MzJaMGIxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
 UExFMQ8wDQYDVQQDDAZDbGllbnQxITAfBgkqhkiG9w0BCQEWEmNsaWVudEBleGFt
-cGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALB/QctPIfpb
-onzUr4bxSANLsAWPoLyE8a1h2WUz2NJxtSjk0Ch531bGtlXxIMzGeUgJ0WwUh15L
-BJxm6vHcVVar1iV3JUf0XW4Wk0cYmpS36PXa9m0pQAXgzanbh5m5FWnGpO4QZS7d
-O7YYmbVO7lwIkT3B7dw3gCeMeyqSJbgXnBRB7zVff/lW/r0zJ1MF3AZHpDP17CHK
-175MBha29DqfsHkfqQga0eIR9vTqSBwe+m717pLgDoc23SgfHfsI+8F09uT+GEoy
-7Gr1CvT8mCkOHyg8yDIm0h7Az1hjvUPGW7P9PoYBCcto0OjcOPwTFVL8dgX8b6v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uf
-zfyGUJmxDbmclHSHwoRCnoPKUXNc3u1e9OcrQULK+bZRz1cg/V9NeFTMTPt3QLRy
-U7a3dtsyX6hWSz4fLy/OYRM52JitU+0cjg4q0Yp9BMUs
+hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxJJyhgpArh9XQDZSCx1GjBvXqd0xOjdT
+zdpIueM37JZ2od5KnSfu40GqNawffex97g0WO4qTfPez2rEUibFKZTZY96LEkw8T
+z84H9N3pNvdJ7vCnhUByERzfQwTstX7OXx/OLV2KGaZMSziEo8GhEszcZX5SJaVE
+67n5PONRsw+IJRTn6SNZ4rPPLKAYjOnF6z9lkzpwpC0DgF1pFu4ClBA7OjhpuOys
+DVwL+ACdx1ZMW1zxeKDVpzLWytvU4opotwkeRvvyF02WQwXXSafw17TTFbwkgr33
+Wuq5Yeo4wMJhLVCbyYd3uqIgRXV9iZbZPj99JCKSavhrd2PWtt3gsQIDAQABMA0G
+CSqGSIb3DQEBCwUAA4IBAQAe6I9Gxeg5DuWFvwNNWkvLGUjFJFGC3+ZXVDwEFwkz
+RV7l67wLUt7ZlQfHjBAErDcxQE14t6DMPwYbLBD+xN62VM3RWDm6QNqzg57kYEsy
+AWQ9gz/S7NE8gTckeM5xZSyCKEOnVsnQGMuQNP48hK5I81deemPLxS6KsMu+Hkmc
+nE6iLrUPMldhUf9xiz9Hz69gtO0rw7hJY3tWIH+QFSQ0n2LsF0dU9+2yAJm06kgW
+DRLYof2f8eGiRJq2Q/qQD/8rHTfqvLDSC4bF3RMRpTlcI6jYLbLpIrXBpVMjKHsw
+CZUFScAv2lCt6JVU10rd7Yk4vTS4C+d/taLRhi8CX+Vo
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/old-ca-key.pem b/tls/tests/files/old-ca-key.pem
index 1db5abf..65bd357 100644
--- a/tls/tests/files/old-ca-key.pem
+++ b/tls/tests/files/old-ca-key.pem
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKC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C2QiaSk1+4Ybu4m6d1
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/old-ca.pem b/tls/tests/files/old-ca.pem
index cb498da..4b5fd27 100644
--- a/tls/tests/files/old-ca.pem
+++ b/tls/tests/files/old-ca.pem
@@ -1,30 +1,30 @@
 -----BEGIN CERTIFICATE-----
-MIIFLjCCBBagAwIBAgIUJMXPCPBYU7JuV+eZvzCqQcLy6H8wDQYJKoZIhvcNAQEL
+MIIFLjCCBBagAwIBAgIURTD32C6JKDM+4JL3C0fSOQ5Ilr0wDQYJKoZIhvcNAQEL
 BQAwgZ8xEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFN
 UExFMSwwKgYDVQQLDCNPbGQgVW50cnVzdGVkIENlcnRpZmljYXRlIEF1dGhvcml0
 eTEiMCAGA1UEAwwZb25jZS53YXMuYS5jYS5leGFtcGxlLmNvbTEdMBsGCSqGSIb3
-DQEJARYOY2FAZXhhbXBsZS5jb20wIBcNMjAxMDEyMTc0OTQ0WhgPMjA1MDEwMDUx
-NzQ5NDRaMIGfMRMwEQYKCZImiZPyLGQBGRYDQ09NMRcwFQYKCZImiZPyLGQBGRYH
+DQEJARYOY2FAZXhhbXBsZS5jb20wIBcNMjEwNjIxMDIxNTMyWhgPMjA1MTA2MTQw
+MjE1MzJaMIGfMRMwEQYKCZImiZPyLGQBGRYDQ09NMRcwFQYKCZImiZPyLGQBGRYH
 RVhBTVBMRTEsMCoGA1UECwwjT2xkIFVudHJ1c3RlZCBDZXJ0aWZpY2F0ZSBBdXRo
 b3JpdHkxIjAgBgNVBAMMGW9uY2Uud2FzLmEuY2EuZXhhbXBsZS5jb20xHTAbBgkq
 hkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
-MIIBCgKCAQEAuEDVnakqhymgXTkKnf/ahFRD/Ou+JIHX6EJMYeeTRRuFemCfW0NK
-8opOTjivBe8sv9Apc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0Mi0aE8bBqfdRhq7coR/XSx2S4LCf3BBizA==
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/root-ca-csr.pem b/tls/tests/files/root-ca-csr.pem
index 9ca15dc..fb0047b 100644
--- a/tls/tests/files/root-ca-csr.pem
+++ b/tls/tests/files/root-ca-csr.pem
@@ -2,18 +2,18 @@
 MIIDHTCCAgUCAQAwgYYxEzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/Is
 ZAEZFgdFWEFNUExFMR4wHAYDVQQLDBVDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxFzAV
 BgNVBAMMDmNhLmV4YW1wbGUuY29tMR0wGwYJKoZIhvcNAQkBFg5jYUBleGFtcGxl
-LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKWFJia5M5GJSnjx
-TbIW/h5Rl0/uS7jek4Rfk5fsy+2lxPk6/a+rdVXNHtLKmF8ouG8QocYr+MQNvGed
-hqSv8L+ViZXlz/zh/DMk5mzQUOSi5yrjjQbOJ8oeEAK2mXF42x4mNiNmBdUsavna
-emXAoCX2f05wci0sGDS1fxUyGMV5Bay32YCrFVyhfYUKbs9ItpMuyngIfBOVH7wa
-9N+XQuQIvT/ZZ2x/0PgbQWv+JFmIfMV4KuIZXuJYM0zmoLQEjgF1kdOpyoLot4u1
-EmgqceZakTTRZvst4rAZqib6F5lBgsZm4ige4KAQjGfJlVjiPBiAo/KyJjeu/d0i
-wLNdsHcCAwEAAaBRME8GCSqGSIb3DQEJDjFCMEAwHQYDVR0OBBYEFItwUX46Lhat
-01qPPvBzpTiLZfc7MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0G
-CSqGSIb3DQEBCwUAA4IBAQBG+2R4zJceqiQGKGqpotYufcbwVmJdwgaL8LNf1RVF
-E3xIhbnIUq/akZzY60zSC1p1rfG1wMIpZgOkAYZY5yDLFNOb9CJK1Ps/3z4FhzTU
-QgUkQA/nxz+v3bemGs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6of+FO4wWtR6Aa7
+29pF02rDJYaxwGoCUN52Le0zDjY+bUu729pM27E8sosn
 -----END CERTIFICATE REQUEST-----
diff --git a/tls/tests/files/server-and-key.pem b/tls/tests/files/server-and-key.pem
index f8dbed6..a51df4b 100644
--- a/tls/tests/files/server-and-key.pem
+++ b/tls/tests/files/server-and-key.pem
@@ -1,49 +1,49 @@
 -----BEGIN CERTIFICATE-----
-MIIDlDCCAnygAwIBAgIBAjANBgkqhkiG9w0BAQsFADCBhjETMBEGCgmSJomT8ixk
+MIIDpzCCAo+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADCBhjETMBEGCgmSJomT8ixk
 ARkWA0NPTTEXMBUGCgmSJomT8ixkARkWB0VYQU1QTEUxHjAcBgNVBAsMFUNlcnRp
 ZmljYXRlIEF1dGhvcml0eTEXMBUGA1UEAwwOY2EuZXhhbXBsZS5jb20xHTAbBgkq
-hkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMB4XDTIwMTAxMjE3NDk0NFoXDTQ1MTAw
-NjE3NDk0NFowSzETMBEGCgmSJomT8ixkARkWA0NPTTEXMBUGCgmSJomT8ixkARkW
+hkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMB4XDTIxMDYyMTAyMTUzMloXDTQ2MDYx
+NTAyMTUzMlowSzETMBEGCgmSJomT8ixkARkWA0NPTTEXMBUGCgmSJomT8ixkARkW
 B0VYQU1QTEUxGzAZBgNVBAMMEnNlcnZlci5leGFtcGxlLmNvbTCCASIwDQYJKoZI
-hvcNAQEBBQADggEPADCCAQoCggEBANFcFiZ4ymgxJ9zzPc2q9R36m4dEVXmsYSx/
-fk6uXLMZ7S8eFIDRdM/THTLeZamIlWUsPBFigoxlOy/9j3sWR+0r4Ejba7nSlWmM
-o0MkoHgCsVndWtefQzncEbLLkZ1gz2dwjJFVSnaEGSrfdT4Sz5WtCmOX1L06J9fV
-ZQhdvHV8iPOlh1hSHTbkUP6hnsSA/2X5tGrgk3FaAqydTKX/vQbn5Uc+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1bVCaYG18iPziFzTx+xxXhw+EBdZ4EfkliwUM8rjRcIz9Igu4d8nKq1
+QHrK7gpLa8zywxSyMZUmf82dAoGAGZNm4SL81K0Sxub2CkhB9m8DEZCbCFmw+dag
+5dYPVJzYf1cINEgz4X53P8CDzMPEJgVHXLA4WacANxd4qqv8u9mgwFjLq+vK90VW
+1TbWU4n61z734iwlWRN4TV2+93oUHk51tFjtsroSDWj58t8mrpASmk3vDHX7AW4S
+xYHzXLcCgYEAz7WwusXSfkff/Ar4fVV38tkJjROXnZKyMMsAI6hFRwps1CVwwE03
+OMtauYRc9uryA/DMDIDmejn6808p6OrnrBaDFQ7lKxH/mIMh/coE0FFv8WN2B4Vq
+AsmHGXwh43qOVLP+o5r/kblustHb8TQiK5/u2gRwhEgenzZUjLuCP7s=
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/server-csr.pem b/tls/tests/files/server-csr.pem
new file mode 100644
index 0000000..a2bbaaa
--- /dev/null
+++ b/tls/tests/files/server-csr.pem
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIICwTCCAakCAQAwSzETMBEGCgmSJomT8ixkARkWA0NPTTEXMBUGCgmSJomT8ixk
+ARkWB0VYQU1QTEUxGzAZBgNVBAMMEnNlcnZlci5leGFtcGxlLmNvbTCCASIwDQYJ
+KoZIhvcNAQEBBQADggEPADCCAQoCggEBAMSScoYKQK4fV0A2UgsdRowb16ndMTo3
+U83aSLnjN+yWdqHeSp0n7uNBqjWsH33sfe4NFjuKk3z3s9qxFImxSmU2WPeixJMP
+E8/OB/Td6Tb3Se7wp4VAchEc30ME7LV+zl8fzi1dihmmTEs4hKPBoRLM3GV+UiWl
+ROu5+TzjUbMPiCUU5+kjWeKzzyygGIzpxes/ZZM6cKQtA4BdaRbuApQQOzo4abjs
+rA1cC/gAncdWTFtc8Xig1acy1srb1OKKaLcJHkb78hdNlkMF10mn8Ne00xW8JIK9
+91rquWHqOMDCYS1Qm8mHd7qiIEV1fYmW2T4/fSQikmr4a3dj1rbd4LECAwEAAaAx
+MC8GCSqGSIb3DQEJDjEiMCAwCQYDVR0TBAIwADATBgNVHSUEDDAKBggrBgEFBQcD
+ATANBgkqhkiG9w0BAQsFAAOCAQEAaf5Ne9fhOYvu0Jxb3v7kmzUAW60Bkr56bckO
+mO7Fme23AxVsTdjkMCo2efWDV4a+r9XkwifJ0PGeEk8pi1oCsByDZWEmbpzNlcSd
+xXZ0fWV8Wx+ytnh9JRLKqznubnwe1eTAicfmirOaTS/KoRYZwF1YoHOsGsS6cxUV
+5Uu8MlRUvJsIRz7Uv+t/21RpCsWM3GMclvd53a1TPTDlmla1hqPQRBOcQpKIv9F6
+mcccBtL0lIvRc+BJxJK5hAV4ZPryccQOeQjRSQJngnQsi4ePnnjMvT3VKG97wF6G
+DW1fmiL5jD5Z7nt7kTh4kSzGxABCV229LvJh0WYMOcOCXMgZsw==
+-----END CERTIFICATE REQUEST-----
diff --git a/tls/tests/files/server-intermediate-csr.pem b/tls/tests/files/server-intermediate-csr.pem
index 07e86c2..0c5bb6d 100644
--- a/tls/tests/files/server-intermediate-csr.pem
+++ b/tls/tests/files/server-intermediate-csr.pem
@@ -1,17 +1,17 @@
 -----BEGIN CERTIFICATE REQUEST-----
 MIICwTCCAakCAQAwSzETMBEGCgmSJomT8ixkARkWA0NPTTEXMBUGCgmSJomT8ixk
 ARkWB0VYQU1QTEUxGzAZBgNVBAMMEnNlcnZlci5leGFtcGxlLmNvbTCCASIwDQYJ
-KoZIhvcNAQEBBQADggEPADCCAQoCggEBAN4t3FBzYQk48Bzm7S9JiZqmWVY/FagC
-9aim8foydtzXXcXjIEWc6AChko8FhLJAp5ZJCxm7MbYc5pZfyGgecBawG13fKYoP
-o+59dUJAw8xkENKCi57K0fsfwZf4v0SqawmYUj9AtIsy8Q6xTRfVHA+Pj2qbNNTM
-IUzgIg3b7TpGnhjNDlxYzXLPThiKD8Vm+SrXOm8W+hCpIivyGDNWCxTo1MHj2UUm
-HPGHfwZ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u1oaSOEwbUKrDsDKhxEYK+PykWpbbVPfFts2R1
+H1XCPk+5VbDQWmXOrkK5nLjaRodclkgYDY8APURiryazxgSotxDJ8Y1Q8ylOF57q
+E1Eh2UfKPr2di0YFfb+AbP6PC1xDKr+JWvgJ0I895ju44t9BgeAuYFTGd9DH82xO
+2DGJqAUmaqzreQWjZZuz3IhWEPEiUTF5u3jGv66SLajmEv9AHYuUaphW4Bdu/zpV
+E99pleIRfm7VMZ3GjCkEFd1X9XToA5QlQjlc+g+MSPd2ChVfBQ==
 -----END CERTIFICATE REQUEST-----
diff --git a/tls/tests/files/server-intermediate-key.pem b/tls/tests/files/server-intermediate-key.pem
index 3356bcd..958b4ef 100644
--- a/tls/tests/files/server-intermediate-key.pem
+++ b/tls/tests/files/server-intermediate-key.pem
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEA3i3cUHNhCTjwHObtL0mJmqZZVj8VqAL1qKbx+jJ23NddxeMg
-RZzoAKGSjwWEskCnlkkLGbsxthzmll/IaB5wFrAbXd8pig+j7n11QkDDzGQQ0oKL
-nsrR+x/Bl/i/RKprCZhSP0C0izLxDrFNF9UcD4+Paps01MwhTOAiDdvtOkaeGM0O
-XFjNcs9OGIoPxWb5Ktc6bxb6EKkiK/IYM1YLFOjUwePZRSYc8Yd/BlcIn123yxxB
-NXUHRN5Mndeb/D5oDNR9t2WQK5+yTqcuyP6BgxGQYaxij8aYC/j889Sin7I0rpUs
-vWc2CnSE/5XC8ZTZymfoFEGalS7nEeteQeNT4QIDAQABAoIBAQDJoM7mh77REsX9
-RKiNGGxzV3GNrpRls8HiuxawGyn5gs1L77Hy2tFE+Vw6xSRGbBxqa4FSaapUfefZ
-IbWKn8zTGiDL0OEutMDthxdp98J483q8v9IbWi6zen9C/m/9zbZzr7M8SelOxf0z
-ez3eWf0sNflOIuoQD+xMir782tBv58Jk+vNWIbVXS9MTltWujcw6JDl57I7ILou+
-ui+WsSURhkh3EenwHW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AMsTJh9KBmvvsTwOVazx
+mC6IAvBd1XZsPACkMA/4E9Ufx60BySi8d8CHtb9or+fFjMsE23z9Kc/RsQEAy59G
+PStakaPDbW9Y6G+ojG9te4xpNJEjiLu7jNk5K6Gsl5fiafJQlluaNTDhxqdR31t0
+v4QY/3IRykFNThj9XPeu34VBAoGBAK9o3CajHa0u4VdjAnfQ0wMU3ChdMaiY6Q5H
+3YcPmxTQVIw21nH1Qf5D68zZAMS+TVAsC6Ghb6JypWnLwJbhmsj2fxGuWuENFgkZ
+v6sxmTlNKTT1HegnNSFGgWO5GeZ6+0Dg1bOeod2aLHEhlqh2NtBxIUwTgjoJ+K9i
+pCD3LR/bAoGAXndw548qwqzO517/JmXgSWzWEHghxFy4seipTnRhkkPpB2T1PaDg
+BRRT8oU0WBEMAZyWcmQES8nN39fprvZzcXaRfDpTlUkjrwdqxM6VW2FiAwdGnl0e
+gI0kXi9dpmyHz3Lt7hN+pPF4eqpkpULunJ0j1VwuyYeZllMVnJJaBx4=
 -----END RSA PRIVATE KEY-----
diff --git a/tls/tests/files/server-intermediate.pem b/tls/tests/files/server-intermediate.pem
index c2aad3f..d5af950 100644
--- a/tls/tests/files/server-intermediate.pem
+++ b/tls/tests/files/server-intermediate.pem
@@ -3,20 +3,20 @@ MIIDuzCCAqOgAwIBAgIBATANBgkqhkiG9w0BAQsFADCBrTETMBEGCgmSJomT8ixk
 ARkWA0NPTTEXMBUGCgmSJomT8ixkARkWB0VYQU1QTEUxKzApBgNVBAsMIkludGVy
 bWVkaWF0ZSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxJDAiBgNVBAMMG2ludGVybWVk
 aWF0ZS1jYS5leGFtcGxlLmNvbTEqMCgGCSqGSIb3DQEJARYbaW50ZXJtZWRpYXRl
-LWNhQGV4YW1wbGUuY29tMB4XDTIwMTAxMjE3NDk1MVoXDTQ1MTAwNjE3NDk1MVow
+LWNhQGV4YW1wbGUuY29tMB4XDTIxMDYyMTAyMTUzMloXDTQ2MD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PdcDU2
-yd4F3u4bPL4RSSRFIKdqrAaHK0wnzLoF3HneUjKzU/l36kNHBa7dUo8Q2SGd3V4d
-zDR0uT9uUdsZVwmUbAcZs1Z9d1vPMWDqS1zwBKYtLTw2Z7sl9xaLYhxLZSyf1Pxe
-aC8+gNaqJ25aKAbDSMNCyF32vRy4OYy7Hi8Itexkva6XMlF4H4gSXs4QZP9WGhp7
-6YRdcy6Z6lJfkJ9SW6nsoNJvbYGOGbxHg9brxWJV8T7cFBQQVvZKasydS6+6IK/2
-/+n38vEog/7hGQ85iOsu0xOcdkKl/SIj1ckJtGAVif2kbCSzugSafA2jRELyiI0=
+ZXhhbXBsZS5jb20wDQYJKoZIhvcNAQELBQADggEBADdrK0wg0hjXeztV+V4Pm+LR
+ufzDOBb1bh+HfeGAx4N9Ul3CKYy6rVcNXcFuWdgzm/0Ig3XkpDvTn8qzLc4WhgcZ
+e+TIgM2+i0QM7zjKBBv8n8yoixjVcYE3ETa9q3P0IKxF6U8trijrpJPCF17PiV/q
+21K1wp3L3m3UlyWqQBY4SWpuAPGsuNMaSDuTKzJ01B3qeE43oz/VaAXlBsqxWAdn
+VbzA/0j/yv87EEoU8crGI4l4610i3OP3LZJzklgJ/hl+q5+r6Huv4RCBH3qRBkOx
+UC9bL6aqCaBS0VuFJiKSHPzj+zxHMDmBtMpe1pGP4XKvPB/BUX4hinWoFkisIqE=
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/server-key.der b/tls/tests/files/server-key.der
index 781d7a8..8f2f9b8 100644
Binary files a/tls/tests/files/server-key.der and b/tls/tests/files/server-key.der differ
diff --git a/tls/tests/files/server-key.pem b/tls/tests/files/server-key.pem
index 7fd2413..53e5eba 100644
--- a/tls/tests/files/server-key.pem
+++ b/tls/tests/files/server-key.pem
@@ -1,27 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIEogIBAAKCAQEA0VwWJnjKaDEn3PM9zar1Hfqbh0RVeaxhLH9+Tq5csxntLx4U
-gNF0z9M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-self.pem b/tls/tests/files/server-self.pem
index d203ceb..853a04e 100644
--- a/tls/tests/files/server-self.pem
+++ b/tls/tests/files/server-self.pem
@@ -1,19 +1,19 @@
 -----BEGIN CERTIFICATE-----
-MIIDHTCCAgUCFF+c5XZhrI5ZN0TBpIskizePiZwbMA0GCSqGSIb3DQEBCwUAMEsx
+MIIDHTCCAgUCFFS2ZJmzdo+pvNAZ77+esUx03158MA0GCSqGSIb3DQEBCwUAMEsx
 EzARBgoJkiaJk/IsZAEZFgNDT00xFzAVBgoJkiaJk/IsZAEZFgdFWEFNUExFMRsw
-GQYDVQQDDBJzZXJ2ZXIuZXhhbXBsZS5jb20wHhcNMjAxMDEyMTc0OTQ1WhcNNDUx
-MDA2MTc0OTQ1WjBLMRMwEQYKCZImiZPyLGQBGRYDQ09NMRcwFQYKCZImiZPyLGQB
+GQYDVQQDDBJzZXJ2ZXIuZXhhbXBsZS5jb20wHhcNMjEwNjIxMDIxNTMyWhcNNDYw
+NjE1MDIxNTMyWjBLMRMwEQYKCZImiZPyLGQBGRYDQ09NMRcwFQYKCZImiZPyLGQB
 GRYHRVhBTVBMRTEbMBkGA1UEAwwSc2VydmVyLmV4YW1wbGUuY29tMIIBIjANBgkq
-hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0VwWJnjKaDEn3PM9zar1Hfqbh0RVeaxh
-LH9+Tq5csxntLx4UgNF0z9MdMt5lqYiVZSw8EWKCjGU7L/2PexZH7SvgSNtrudKV
-aYyjQySgeAKxWd1a159DOdwRssuRnWDPZ3CMkVVKdoQZKt91PhLPla0KY5fUvTon
-19VlCF28dXyI86WHWFIdNuRQ/qGexID/Zfm0auCTcVoCrJ1Mpf+9BuflRz7KAitk
-IZC3h61eTJeLoQwjpE1GiiBhxXfp5/zBgd+jFf+i7l+xQ8jWW2Bzns8KTkSwXVAx
-aTFxbzkNmEidTyZ3txmK9/0wGU/uLDJZ72ohKH4ZKl9Gz6Y/WNWW9wIDAQABMA0G
-CSqGSIb3DQ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cI6jYLbLpIrXBpVMjKHsw
+CZUFScAv2lCt6JVU10rd7Yk4vTS4C+d/taLRhi8CX+Vo
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/server.der b/tls/tests/files/server.der
index 0113337..a1188d0 100644
Binary files a/tls/tests/files/server.der and b/tls/tests/files/server.der differ
diff --git a/tls/tests/files/server.pem b/tls/tests/files/server.pem
index 44b49a8..1476546 100644
--- a/tls/tests/files/server.pem
+++ b/tls/tests/files/server.pem
@@ -1,22 +1,22 @@
 -----BEGIN CERTIFICATE-----
-MIIDlDCCAnygAwIBAgIBAjANBgkqhkiG9w0BAQsFADCBhjETMBEGCgmSJomT8ixk
+MIIDpzCCAo+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADCBhjETMBEGCgmSJomT8ixk
 ARkWA0NPTTEXMBUGCgmSJomT8ixkARkWB0VYQU1QTEUxHjAcBgNVBAsMFUNlcnRp
 ZmljYXRlIEF1dGhvcml0eTEXMBUGA1UEAwwOY2EuZXhhbXBsZS5jb20xHTAbBgkq
-hkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMB4XDTIwMTAxMjE3NDk0NFoXDTQ1MTAw
-NjE3NDk0NFowSzETMBEGCgmSJomT8ixkARkWA0NPTTEXMBUGCgmSJomT8ixkARkW
+hkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMB4XDTIxMDYyMTAyMTUzMloXDTQ2MDYx
+NTAyMTUzMlowSzETMBEGCgmSJomT8ixkARkWA0NPTTEXMBUGCgmSJomT8ixkARkW
 B0VYQU1QTEUxGzAZBgNVBAMMEnNlcnZlci5leGFtcGxlLmNvbTCCASIwDQYJKoZI
-hvcNAQEBBQADggEPADCCAQoCggEBANFcFiZ4ymgxJ9zzPc2q9R36m4dEVXmsYSx/
-fk6uXLMZ7S8eFIDRdM/THTLeZamIlWUsPBFigoxlOy/9j3sWR+0r4Ejba7nSlWmM
-o0MkoHgCsVndWtefQzncEbLLkZ1gz2dwjJFVSnaEGSrfdT4Sz5WtC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zZXJ2ZXIuZXhhbXBsZS5jb20wEQYIKwYBBQUHARgEBTADAgEFMA0GCSqGSIb3
+DQEBCwUAA4IBAQANXk6xogrkYU023Bj19OHmyj7mF04KSIah0n5YTRZ7/Xw4f5nM
+r7mWrgdATLiUMESC299vVtwkZH6jdHhCFcygP5qMDtAELoeR6c4T+7vGUNYyey/y
+IfKjgzXzrILHVDimiumothZ7YVcDc9dcj8lcQwFr+v5UBW3IPzs/TCyHA3o0s10o
+U/skjNaO+BhqweOt3m8JfAYXGpqISUXbyiPcROc0F+IXLdxBJHoqyLeK7sc6ni9G
+2U+BxQeOo8F+QG075b3nuv1q6KlhCHXEJQC0XMI6WSCRpq+mXGBVvgeh4W5iZxad
+YUHfhiATYthkgOWvZiiLOpQPQpxxbNB24Zsc
 -----END CERTIFICATE-----
diff --git a/tls/tests/files/ssl/server.conf b/tls/tests/files/ssl/server.conf
index 7adb406..2067430 100644
--- a/tls/tests/files/ssl/server.conf
+++ b/tls/tests/files/ssl/server.conf
@@ -22,6 +22,7 @@ extendedKeyUsage        = serverAuth
 basicConstraints        = CA:false
 extendedKeyUsage        = serverAuth
 subjectAltName          = @alt_names
+tlsfeature              = status_request
 
 [ alt_names ]
 IP.0                    = 192.168.1.10


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]