docs: public void addCACertificateToTrustStore(File caCertPem, String alias) throws CryptoException, InvalidArgumentException {
  
          if (caCertPem == null) {
              throw new InvalidArgumentException("The certificate cannot be null");
          }
  
          if (alias == null || alias.isEmpty()) {
              throw new InvalidArgumentException("You must assign an alias to a certificate when adding to the trust store");
          }
  
          try {
              try (BufferedInputStream bis = new BufferedInputStream(new ByteArrayInputStream(FileUtils.readFileToByteArray(caCertPem)))) {
  
                  Certificate caCert = cf.generateCertificate(bis);
                  addCACertificateToTrustStore(caCert, alias);
              }
          } catch (CertificateException | IOException e) {
              throw new CryptoException("Unable to add CA certificate to trust store. Error: " + e.getMessage(), e);
          }
  
      }