From a944cf92b4a1cab4895e85cae4017dedd13336f7 Mon Sep 17 00:00:00 2001 From: Coty Rosenblath Date: Thu, 1 Dec 2022 08:19:17 -0500 Subject: [PATCH] Add test case for opening certificate file --- .../Certificate Test/Script1669898750398.groovy | 14 ++++++++++++++ Test Cases/Certificate Test.tc | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 Scripts/Certificate Test/Script1669898750398.groovy create mode 100644 Test Cases/Certificate Test.tc diff --git a/Scripts/Certificate Test/Script1669898750398.groovy b/Scripts/Certificate Test/Script1669898750398.groovy new file mode 100644 index 0000000..a187f77 --- /dev/null +++ b/Scripts/Certificate Test/Script1669898750398.groovy @@ -0,0 +1,14 @@ +import javax.net.ssl.* +import java.io.File +import java.io.FileInputStream +import java.io.FileNotFoundException +import java.io.IOException +import java.security.* +import java.security.cert.CertificateException +import java.security.cert.X509Certificate + +import internal.GlobalVariable as GlobalVariable + +File clientSslCertificate = new File(GlobalVariable.clientCertPath); +KeyStore keyStore = KeyStore.getInstance("PKCS12"); +keyStore.load(new FileInputStream(clientSslCertificate), GlobalVariable.certificatePassword.toCharArray()); diff --git a/Test Cases/Certificate Test.tc b/Test Cases/Certificate Test.tc new file mode 100644 index 0000000..2294ec3 --- /dev/null +++ b/Test Cases/Certificate Test.tc @@ -0,0 +1,8 @@ + + + + Certificate Test + + + a66c6386-8d1f-4dd9-b6e7-ee930bb41fed +