Skip to content

Commit

Permalink
Update certificate store to only contain necessary certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
robere2 committed May 12, 2023
1 parent 49a6e2a commit 524693d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void addStatisticsParameters(HashMap<String, String> params) {
*/
private SSLContext createSslContext() throws KeyStoreException, IOException, CertificateException, NoSuchAlgorithmException, KeyManagementException {
final KeyStore ks = KeyStore.getInstance("JKS");
try(final InputStream is = this.getClass().getClassLoader().getResourceAsStream("certs/cacerts.jks")) {
try(final InputStream is = this.getClass().getClassLoader().getResourceAsStream("certs/letsencrypt-ca")) {
if(is == null) {
throw new IOException("CA certificates keystore not found");
}
Expand Down
Binary file removed src/main/resources/certs/cacerts.jks
Binary file not shown.
Binary file added src/main/resources/certs/letsencrypt-ca
Binary file not shown.

0 comments on commit 524693d

Please sign in to comment.