public interface SslCertificateService
Modifier and Type | Field and Description |
---|---|
static char[] |
PASSPHRASE
The passphrase which is used for all Paros Proxy SSL crypto stuff
|
static String |
ZAPROXY_JKS_ALIAS
The alias name used in key stores.
|
Modifier and Type | Method and Description |
---|---|
default 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.
|
void |
initializeRootCA(KeyStore keystore)
Loads CA's private key, public key and X.509 certificate into this bean.
|
static final char[] PASSPHRASE
static final String ZAPROXY_JKS_ALIAS
KeyStore createCertForHost(String hostname) throws NoSuchAlgorithmException, InvalidKeyException, CertificateException, NoSuchProviderException, SignatureException, KeyStoreException, IOException, UnrecoverableKeyException
KeyStore
available with alias ZAPROXY_JKS_ALIAS
.hostname
- KeyStore
which contains root certificate, signed certificate, private key
and public key of signed certificateNoSuchAlgorithmException
InvalidKeyException
CertificateException
NoSuchProviderException
SignatureException
KeyStoreException
IOException
UnrecoverableKeyException
MissingRootCertificateException
- when it wasn't initialized.default KeyStore createCertForHost(CertData certData) throws NoSuchAlgorithmException, InvalidKeyException, CertificateException, NoSuchProviderException, SignatureException, KeyStoreException, IOException, UnrecoverableKeyException
KeyStore
available with alias ZAPROXY_JKS_ALIAS
.certData
- KeyStore
which contains root certificate, signed certificate, private key
and public key of signed certificateNoSuchAlgorithmException
InvalidKeyException
CertificateException
NoSuchProviderException
SignatureException
KeyStoreException
IOException
UnrecoverableKeyException
MissingRootCertificateException
- when it wasn't initialized.void initializeRootCA(KeyStore keystore) throws KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException
keystore
- KeyStoreException
NoSuchAlgorithmException
UnrecoverableKeyException