Package io.fabric8.maven.docker.access
Class KeyStoreUtil
- java.lang.Object
-
- io.fabric8.maven.docker.access.KeyStoreUtil
-
public class KeyStoreUtil extends Object
Utility class for building up a keystore which can be used in SSL communication.- Since:
- 20.10.14
- Author:
- roland
-
-
Constructor Summary
Constructors Constructor Description KeyStoreUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyStorecreateDockerKeyStore(String certPath)Create a key stored holding certificates and secret keys from the given Docker key cert
-
-
-
Method Detail
-
createDockerKeyStore
public static KeyStore createDockerKeyStore(String certPath) throws IOException, GeneralSecurityException
Create a key stored holding certificates and secret keys from the given Docker key cert- Parameters:
certPath- directory holding the keys (key.pem) and certs (ca.pem, cert.pem)- Returns:
- a keystore where the private key is secured with "docker"
- Throws:
IOException- is reading of the the PEMs failedGeneralSecurityException- when the files in a wrong format
-
-