Class KeyTools

    • Constructor Detail

      • KeyTools

        public KeyTools()
    • Method Detail

      • generateTestCertificate

        public static X509Certificate generateTestCertificate​(KeyPair pair)
        Generate version 1 self signed X509Certificate
        Parameters:
        pair - the CA key pair
        Returns:
        the x509 certificate
        Throws:
        Exception - the exception
      • generateTestCertificate

        public static X509Certificate generateTestCertificate​(String subject,
                                                              String issuer,
                                                              KeyPair pair)
        Generate version 1 self signed X509Certificate
        Parameters:
        subject - the subject name
        issuer - the issuer name
        pair - the CA key pair
        Returns:
        the x509 certificate
        Throws:
        Exception - the exception