Skip to content

Commit 30009a0

Browse files
gowthamsk-armtgonzalezorlandoarm
authored andcommitted
e2e_tests: Configure tests to use Parsec RSA key
Signed-off-by: Gowtham Suresh Kumar <[email protected]>
1 parent 8b08005 commit 30009a0

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

parsec-openssl-provider-shared/e2e_tests/tests/handshake.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fn test_handshake_client_authentication_rsa() {
120120

121121
let client = Client::new(
122122
Some(String::from("../../tests/tls/client/client_cert.pem")),
123-
Some(String::from("../../tests/tls/client/client_priv_key.pem")),
123+
Some(String::from("PARSEC_TEST_RSA_KEY")),
124124
Some(String::from("../../tests/tls/ca/ca_cert.pem")),
125125
SslVerifyMode::PEER,
126126
);
@@ -143,9 +143,7 @@ fn test_handshake_client_authentication_with_fake_ca() {
143143

144144
let client = Client::new(
145145
Some(String::from("../../tests/tls/fake_client/client_cert.pem")),
146-
Some(String::from(
147-
"../../tests/tls/fake_client/client_priv_key.pem",
148-
)),
146+
Some(String::from("PARSEC_TEST_RSA_KEY")),
149147
Some(String::from("../../tests/tls/fake_ca/ca_cert.pem")),
150148
SslVerifyMode::PEER,
151149
);
@@ -167,9 +165,6 @@ fn test_client_with_mismatched_rsa_key_and_certificate() {
167165
.unwrap();
168166

169167
ctx_builder
170-
.set_private_key_file(
171-
String::from("../../tests/tls/client/client_priv_key.pem"),
172-
SslFiletype::PEM,
173-
)
168+
.set_private_key_file(String::from("PARSEC_TEST_RSA_KEY"), SslFiletype::PEM)
174169
.unwrap_err();
175170
}

0 commit comments

Comments
 (0)