Class CsrGenerator
java.lang.Object
org.graylog.security.certutil.csr.CsrGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.pkcs.PKCS10CertificationRequest
generateCSR
(char[] privateKeyPassword, String principalName, List<String> altNames, PrivateKeyEncryptedStorage privateKeyEncryptedStorage) Generates new CSR.
-
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 CSRprivateKeyEncryptedStorage
- Mechanism for storing private keys.- Returns:
- A new CSR, instance of
PKCS10CertificationRequest
- Throws:
CSRGenerationException
-