public class KeyTools extends Object
X509Certificate
Constructor and Description |
---|
KeyTools() |
Modifier and Type | Method and Description |
---|---|
static X509Certificate |
generateTestCertificate(KeyPair pair)
Generate version 1 self signed
X509Certificate |
static X509Certificate |
generateTestCertificate(String subject,
String issuer,
KeyPair pair)
Generate version 1 self signed
X509Certificate |
public static X509Certificate generateTestCertificate(KeyPair pair)
X509Certificate
pair
- the CA key pairException
- the exceptionpublic static X509Certificate generateTestCertificate(String subject, String issuer, KeyPair pair)
X509Certificate
subject
- the subject nameissuer
- the issuer namepair
- the CA key pairException
- the exceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.