From a61488cbc3ea0c0ac9878f0831c90a5ecf40af3d Mon Sep 17 00:00:00 2001 From: Cyrus <24922493+cyrus-dev@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:37:57 -0400 Subject: [PATCH] The wrong 'certificate' was being used --- .../portal/page/controllers/CertificatePageController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/CertificatePageController.java b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/CertificatePageController.java index 82af7b67b..00752c13e 100644 --- a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/CertificatePageController.java +++ b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/CertificatePageController.java @@ -803,7 +803,7 @@ private Certificate parseCertificate( storeCertificate( certificateType, file.getOriginalFilename(), - messages, (Certificate)i.next()); + messages, new CertificateAuthorityCredential(((java.security.cert.Certificate)i.next()).getEncoded())); } // stop the main thread from saving/storing