Class X509Helper

java.lang.Object
com.sshtools.common.ssh.x509.X509Helper

public class X509Helper extends Object
  • 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 file
      alias - the alias of the key in the keystore
      storePassphrase - the passphrase of the keystore
      keyPassphrase - 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 file
      alias - the alias of the key in the keystore
      storePassphrase - the passphrase of the keystore
      keyPassphrase - 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