Class CsrGenerator

java.lang.Object
org.graylog.security.certutil.csr.CsrGenerator

public class CsrGenerator extends Object
  • Constructor Details

    • CsrGenerator

      public CsrGenerator()
  • Method Details

    • generateCSR

      public org.bouncycastle.pkcs.PKCS10CertificationRequest generateCSR(char[] privateKeyPassword, String principalName, List<String> altNames, PrivateKeyEncryptedStorage privateKeyEncryptedStorage) throws CSRGenerationException
      Generates new CSR.
      Parameters:
      privateKeyPassword - Password to protect private key.
      altNames - List of alternative names to be stored in CSR
      privateKeyEncryptedStorage - Mechanism for storing private keys.
      Returns:
      A new CSR, instance of PKCS10CertificationRequest
      Throws:
      CSRGenerationException