The wrong 'certificate' was being used

This commit is contained in:
Cyrus 2023-09-11 16:37:57 -04:00
parent 1b7ba564d8
commit a61488cbc3

View File

@ -803,7 +803,7 @@ public class CertificatePageController extends PageController<NoPageParams> {
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