Skip to content

Commit

Permalink
fix: handle invalid ca exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Ochoa committed Sep 16, 2022
1 parent e0d0f2f commit 3ad6f7b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public Result apply(CDAConfiguration configuration) {
certificateStore.setCaCertificateChain(result.getB());
configuration.updateCACertificates(
Collections.singletonList(CertificateHelper.toPem(certificateStore.getCaCertificateChain())));
} catch (CertificateEncodingException | KeyStoreException | IOException e) {
} catch (CertificateEncodingException | InvalidCertificateAuthorityException | KeyStoreException
| IOException e) {
logger.atError().kv("privateKeyUri", privateKeyUri).kv("certificateUri",certificateUri)
.cause(e).log("Failed to configure CA");
return Result.error(e);
Expand Down

0 comments on commit 3ad6f7b

Please sign in to comment.