[NetworkManager-openvpn: 2/3] import-export: test inline crl-verify
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-openvpn: 2/3] import-export: test inline crl-verify
- Date: Mon, 3 Feb 2020 17:26:40 +0000 (UTC)
commit c1b5bf9519aac817cf3201f385c867a6f31a89ea
Author: Beniamino Galvani <bgalvani redhat com>
Date: Mon Feb 3 17:43:36 2020 +0100
import-export: test inline crl-verify
properties/tests/conf/tls-inline-crl-verify-file.pem | 8 ++++++++
properties/tests/conf/tls-inline.ovpn | 11 +++++++++++
properties/tests/test-import-export.c | 2 ++
3 files changed, 21 insertions(+)
---
diff --git a/properties/tests/conf/tls-inline-crl-verify-file.pem
b/properties/tests/conf/tls-inline-crl-verify-file.pem
new file mode 100644
index 0000000..94dc7f8
--- /dev/null
+++ b/properties/tests/conf/tls-inline-crl-verify-file.pem
@@ -0,0 +1,8 @@
+-----BEGIN X509 CRL-----
+MIHxMFwwDQYJKoZIhvcNAQEEBQAwFTETMBEGA1UEAxMKT3BlblZQTiBDQRcNMTQw
+NDIyMDQzOTI3WhcNMjQwNDE5MDQzOTI3WjAWMBQCAQEYDzIwMTQwNDIyMDQzOTI3
+WjANBgkqhkiG9w0BAQQFAAOBgQBQXzbNjXkx8+/TeG8qbFQD5wd6wOTe8HnypQTt
+eELsI7eyNtiRRhJD3qKfawPVUabSijnwhAPHfhoIOLKe67RLfzOwAsFKPNJAVdmq
+rYw1t2eucHvGjH8PnTh0aJPJaI67jmNbSI4CnHNcRgZ+1ow1GS+RAK7kotS+dZz9
+0tc7Qw==
+-----END X509 CRL-----
diff --git a/properties/tests/conf/tls-inline.ovpn b/properties/tests/conf/tls-inline.ovpn
index 96cd453..d946992 100644
--- a/properties/tests/conf/tls-inline.ovpn
+++ b/properties/tests/conf/tls-inline.ovpn
@@ -138,6 +138,17 @@ d4cebc0da588fed8ec73b9b9be86962d
-----END OpenVPN Static key V1-----
</tls-auth>
+<crl-verify>
+-----BEGIN X509 CRL-----
+MIHxMFwwDQYJKoZIhvcNAQEEBQAwFTETMBEGA1UEAxMKT3BlblZQTiBDQRcNMTQw
+NDIyMDQzOTI3WhcNMjQwNDE5MDQzOTI3WjAWMBQCAQEYDzIwMTQwNDIyMDQzOTI3
+WjANBgkqhkiG9w0BAQQFAAOBgQBQXzbNjXkx8+/TeG8qbFQD5wd6wOTe8HnypQTt
+eELsI7eyNtiRRhJD3qKfawPVUabSijnwhAPHfhoIOLKe67RLfzOwAsFKPNJAVdmq
+rYw1t2eucHvGjH8PnTh0aJPJaI67jmNbSI4CnHNcRgZ+1ow1GS+RAK7kotS+dZz9
+0tc7Qw==
+-----END X509 CRL-----
+</crl-verify>
+
remote-cert-tls server
tls-remote "/CN=myvpn.company.com"
diff --git a/properties/tests/test-import-export.c b/properties/tests/test-import-export.c
index 8d0a635..09fb224 100644
--- a/properties/tests/test-import-export.c
+++ b/properties/tests/test-import-export.c
@@ -438,6 +438,7 @@ test_tls_inline_import (void)
test_file_contents (expected_id, SRCDIR, s_vpn, NM_OPENVPN_KEY_CERT);
test_file_contents (expected_id, SRCDIR, s_vpn, NM_OPENVPN_KEY_KEY);
test_file_contents (expected_id, SRCDIR, s_vpn, NM_OPENVPN_KEY_TA);
+ test_file_contents (expected_id, SRCDIR, s_vpn, NM_OPENVPN_KEY_CRL_VERIFY_FILE);
_check_item (s_vpn, NM_OPENVPN_KEY_TA_DIR, "1");
_check_secret (s_vpn, NM_OPENVPN_KEY_PASSWORD, NULL);
@@ -447,6 +448,7 @@ test_tls_inline_import (void)
g_assert (unlink (TMPDIR"/tls-inline-cert.pem") == 0);
g_assert (unlink (TMPDIR"/tls-inline-key.pem") == 0);
g_assert (unlink (TMPDIR"/tls-inline-tls-auth.pem") == 0);
+ g_assert (unlink (TMPDIR"/tls-inline-crl-verify.pem") == 0);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]