public class KeyStoreUtil extends Object
| Constructor and Description |
|---|
KeyStoreUtil() |
| Modifier and Type | Method and Description |
|---|---|
static KeyStore |
createDockerKeyStore(String certPath)
Create a key stored holding certificates and secret keys from the given Docker key cert
|
static PrivateKey |
loadPrivateKey(String keyPath) |
public static KeyStore createDockerKeyStore(String certPath) throws IOException, GeneralSecurityException
certPath - directory holding the keys (key.pem) and certs (ca.pem, cert.pem)IOException - is reading of the the PEMs failedGeneralSecurityException - when the files in a wrong formatpublic static PrivateKey loadPrivateKey(String keyPath) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2016. All Rights Reserved.