public final class CachedSslCertifificateServiceImpl extends Object implements SslCertificateService
SslCertificateServiceImpl
. It's not
persisting certificates on hard disk. This class is designed to be thread safe.PASSPHRASE, ZAPROXY_JKS_ALIAS
Modifier and Type | Method and Description |
---|---|
KeyStore |
createCertForHost(CertData certData)
Generate a certificate signed by our CA's intermediate certificate.
|
KeyStore |
createCertForHost(String hostname)
Generate a certificate signed by our CA's intermediate certificate.
|
static SslCertificateService |
getService() |
void |
initializeRootCA(KeyStore keystore)
Loads CA's private key, public key and X.509 certificate into this bean.
|
public KeyStore createCertForHost(String hostname) throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, SignatureException, NoSuchProviderException, InvalidKeyException, IOException
SslCertificateService
KeyStore
available with alias SslCertificateService.ZAPROXY_JKS_ALIAS
.createCertForHost
in interface SslCertificateService
KeyStore
which contains root certificate, signed certificate, private key
and public key of signed certificateCertificateException
UnrecoverableKeyException
NoSuchAlgorithmException
KeyStoreException
SignatureException
NoSuchProviderException
InvalidKeyException
IOException
public KeyStore createCertForHost(CertData certData) throws NoSuchAlgorithmException, InvalidKeyException, CertificateException, NoSuchProviderException, SignatureException, KeyStoreException, IOException, UnrecoverableKeyException
SslCertificateService
KeyStore
available with alias SslCertificateService.ZAPROXY_JKS_ALIAS
.createCertForHost
in interface SslCertificateService
KeyStore
which contains root certificate, signed certificate, private key
and public key of signed certificateNoSuchAlgorithmException
InvalidKeyException
CertificateException
NoSuchProviderException
SignatureException
KeyStoreException
IOException
UnrecoverableKeyException
public static SslCertificateService getService()
SslCertificateService
public void initializeRootCA(KeyStore keystore) throws KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException
SslCertificateService
initializeRootCA
in interface SslCertificateService
KeyStoreException
UnrecoverableKeyException
NoSuchAlgorithmException