Class CertificateUtils


  • public class CertificateUtils
    extends Object
    The Class CertificateUtils provides utility functions for generation of V1 and V3 X509Certificate
    • 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