Class CertificateUtils

    • Constructor Detail

      • CertificateUtils

        public CertificateUtils()
    • Method Detail

      • generateV1SelfSignedCertificate

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

        public static org.bouncycastle.operator.ContentSigner createSigner​(PrivateKey privateKey)
        Creates the content signer for generation of Version 1 X509Certificate.
        Parameters:
        privateKey - the private key
        Returns:
        the content signer