private static void addCA(KeyStore keyStore, String caPath) throws IOException, KeyStoreException,
            CertificateException {
        for (Certificate cert : loadCertificates(caPath)) {
            X509Certificate crt = (X509Certificate) cert;
            String alias = crt.getSubjectX500Principal().getName();
            keyStore.setCertificateEntry(alias, crt);
        }
    }
Create a key stored holding certificates and secret keys from the given Docker key cert

@param certPath directory holding the keys (key.pem) and certs (ca.pem, cert.pem)
@return a keystore where the private key is secured with "docker"

@throws IOException is reading of the the PEMs failed
@throws GeneralSecurityException when the files in a wrong format
src/main/java/io/fabric8/maven/docker/access/KeyStoreUtil.java