Class SelfSignedX509CertificateAndSigningKey


  • public final class SelfSignedX509CertificateAndSigningKey
    extends Object
    A self-signed X.509 certificate and the private key used to sign the certificate. This class can be used to generate a PKCS #10 certificate signing request.
    Since:
    1.2.0
    Author:
    Farah Juma
    • Method Detail

      • getSelfSignedCertificate

        public X509Certificate getSelfSignedCertificate()
        Get the self-signed X.509 certificate.
        Returns:
        the self-signed X.509 certificate
      • getSigningKey

        public PrivateKey getSigningKey()
        Get the private key used to sign the self-signed X.509 certificate.
        Returns:
        the private key used to sign the self-signed X.509 certificate
      • generatePKCS10CertificateSigningRequest

        public PKCS10CertificateSigningRequest generatePKCS10CertificateSigningRequest()
        Generate a PKCS #10 certificate signing request using the self-signed X.509 certificate and the signing key.
        Returns:
        a PKCS #10 certificate signing request