Interface CertificationAuthorityService


public interface CertificationAuthorityService
Certification authority service.
Version:
1.0
Author:
matt
  • Method Details

    • signCertificate

      X509Certificate signCertificate(String csr, X509Certificate caCert, PrivateKey privateKey) throws CertificateException
      Sign a CSR with a given key.
      Parameters:
      csr - the PKCS10 encoded certificate signing request.
      caCert - The certification authority certificate to sign the CSR with.
      privateKey - The certification authority's private key to sign the CSR with.
      Returns:
      The generated, signed certificate.
      Throws:
      CertificateException - If any error occurs.
    • generateCertificationAuthorityCertificate

      X509Certificate generateCertificationAuthorityCertificate(String dn, PublicKey publicKey, PrivateKey privateKey)
      Create a new self-signed certification authority certificate.
      Parameters:
      dn - The distinguished name of the certificate.
      publicKey - The public key.
      privateKey - The private key.
      Returns:
      The self-signed certificate, with certification authority extensions applied.