Class CertificateChainGenerator

java.lang.Object
io.smallrye.certs.chain.CertificateChainGenerator

public class CertificateChainGenerator extends Object
  • Constructor Details

    • CertificateChainGenerator

      public CertificateChainGenerator(File baseDir)
  • Method Details

    • withCN

      public CertificateChainGenerator withCN(String cn)
      Configure the common name of the "leaf" certificate.
      Parameters:
      cn - the common name, by default `localhost`
      Returns:
      the current generator instance
    • withSAN

      public CertificateChainGenerator withSAN(List<String> san)
      Configure the Subject Alternative Names of the "leaf" certificate.
      Parameters:
      san - the list of SAN, by default `DNS:localhost`
      Returns:
      the current generator instance
    • generate

      public void generate() throws Exception
      Throws:
      Exception