public class CertificateUtils extends Object
X509Certificate
Constructor and Description |
---|
CertificateUtils() |
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.operator.ContentSigner |
createSigner(PrivateKey privateKey)
Creates the content signer for generation of Version 1
X509Certificate . |
static X509Certificate |
generateV1SelfSignedCertificate(KeyPair caKeyPair,
String subject)
Generate version 1 self signed
X509Certificate .. |
static X509Certificate |
generateV3Certificate(KeyPair keyPair,
PrivateKey caPrivateKey,
X509Certificate caCert,
String subject)
Generates version 3
X509Certificate . |
public static X509Certificate generateV3Certificate(KeyPair keyPair, PrivateKey caPrivateKey, X509Certificate caCert, String subject) throws Exception
X509Certificate
.keyPair
- the key paircaPrivateKey
- the CA private keycaCert
- the CA certificatesubject
- the subject nameException
- the exceptionpublic static X509Certificate generateV1SelfSignedCertificate(KeyPair caKeyPair, String subject) throws Exception
X509Certificate
..caKeyPair
- the CA key pairsubject
- the subject nameException
- the exceptionpublic static org.bouncycastle.operator.ContentSigner createSigner(PrivateKey privateKey)
X509Certificate
.privateKey
- the private keyCopyright © 2016 JBoss by Red Hat. All rights reserved.