Package com.sshtools.common.ssh.x509
Class X509Helper
java.lang.Object
com.sshtools.common.ssh.x509.X509Helper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sshtools.common.ssh.components.SshKeyPair[]
loadKeystore
(File keystoreFile, String alias, String storePassphrase, String keyPassphrase) static com.sshtools.common.ssh.components.SshKeyPair[]
loadKeystore
(File keystoreFile, String alias, String storePassphrase, String keyPassphrase, String storeType) static com.sshtools.common.ssh.components.SshKeyPair[]
loadKeystore
(InputStream in, String alias, String storePassphrase, String keyPassphrase) Load a keystore for use as an SSH host key.static com.sshtools.common.ssh.components.SshKeyPair[]
loadKeystore
(InputStream in, String alias, String storePassphrase, String keyPassphrase, String storeType) Load a keystore for use as an SSH host key.
-
Constructor Details
-
X509Helper
public X509Helper()
-
-
Method Details
-
loadKeystore
public static com.sshtools.common.ssh.components.SshKeyPair[] loadKeystore(InputStream in, String alias, String storePassphrase, String keyPassphrase) throws IOException Load a keystore for use as an SSH host key. This will create a public key using the X509V3_SIGN_RSA and X509V3_SIGN_RSA_SHA1 host key types. DSA keys are currently not supported.- Parameters:
keystoreFile
- path to the keystore filealias
- the alias of the key in the keystorestorePassphrase
- the passphrase of the keystorekeyPassphrase
- the passphrase of the key- Throws:
IOException
-
loadKeystore
public static com.sshtools.common.ssh.components.SshKeyPair[] loadKeystore(InputStream in, String alias, String storePassphrase, String keyPassphrase, String storeType) throws IOException Load a keystore for use as an SSH host key. This will create a public key using the X509V3_SIGN_RSA and X509V3_SIGN_RSA_SHA1 host key types. DSA keys are currently not supported.- Parameters:
keystoreFile
- path to the keystore filealias
- the alias of the key in the keystorestorePassphrase
- the passphrase of the keystorekeyPassphrase
- the passphrase of the key- Throws:
IOException
-
loadKeystore
public static com.sshtools.common.ssh.components.SshKeyPair[] loadKeystore(File keystoreFile, String alias, String storePassphrase, String keyPassphrase) throws IOException - Throws:
IOException
-
loadKeystore
public static com.sshtools.common.ssh.components.SshKeyPair[] loadKeystore(File keystoreFile, String alias, String storePassphrase, String keyPassphrase, String storeType) throws IOException - Throws:
IOException
-