public interface KeyAndCertificateFactory
Modifier and Type | Field and Description |
---|---|
static String |
CERTIFICATE_DOMAIN
default CN for leaf distinguishing name
|
static String |
COUNTRY
C for distinguishing name
|
static AsymmetricKeyPairAlgorithm |
DEFAULT_KEY_GENERATION_AND_SIGNING_ALGORITHM
default key pair generation and signing algorithm
|
static String |
LOCALITY
L for distinguishing name
|
static Date |
NOT_AFTER
The maximum possible value in X.509 specification: 9999-12-31 23:59:59,
new Date(253402300799000L), but Apple iOS 8 fails with a certificate
expiration date grater than Mon, 24 Jan 6084 02:07:59 GMT (issue #6).
|
static Date |
NOT_BEFORE
Current time minus 1 year, just in case software clock goes back due to time synchronization
|
static String |
ORGANISATION
O for distinguishing name
|
static String |
ROOT_COMMON_NAME
CN for CA distinguishing name
|
static String |
STATE
ST for distinguishing name
|
Modifier and Type | Method and Description |
---|---|
void |
buildAndSaveCertificateAuthorityPrivateKeyAndX509Certificate() |
void |
buildAndSavePrivateKeyAndX509Certificate() |
X509Certificate |
certificateAuthorityX509Certificate() |
boolean |
certificateNotYetCreated() |
PrivateKey |
privateKey() |
X509Certificate |
x509Certificate() |
static final AsymmetricKeyPairAlgorithm DEFAULT_KEY_GENERATION_AND_SIGNING_ALGORITHM
static final Date NOT_BEFORE
static final Date NOT_AFTER
A hundred years in the future from starting the proxy should be enough.
static final String ROOT_COMMON_NAME
static final String CERTIFICATE_DOMAIN
static final String ORGANISATION
static final String LOCALITY
static final String STATE
static final String COUNTRY
void buildAndSaveCertificateAuthorityPrivateKeyAndX509Certificate()
void buildAndSavePrivateKeyAndX509Certificate()
boolean certificateNotYetCreated()
PrivateKey privateKey()
X509Certificate x509Certificate()
X509Certificate certificateAuthorityX509Certificate()
Copyright © 2022. All rights reserved.