Package io.servicetalk.test.resources
Class DefaultTestCerts
java.lang.Object
io.servicetalk.test.resources.DefaultTestCerts
Provides a set of certificates useful for tests that require SSL.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
Load the certificate of the Certificate Authority used to sign theloadClientPem()
.static InputStream
Load the client private key.static InputStream
Load the client certificate PKCS#12 keystore file.static InputStream
Load the client certificate chain file.static InputStream
Load the certificate of the Certificate Authority used to sign theloadServerPem()
.static InputStream
Load the server private key.static InputStream
Load the server certificate PKCS#12 keystore file.static InputStream
Load the server certificate chain file.static InputStream
Load the PKCS#12 truststore file.static String
Get the hostname contained withinloadServerPem()
which should match for client hostname verification.
-
Method Details
-
loadServerKey
Load the server private key.- Returns:
- an
InputStream
from the server private key file.
-
loadServerPem
Load the server certificate chain file.- Returns:
- an
InputStream
from the server certificate chain file.
-
loadServerP12
Load the server certificate PKCS#12 keystore file.- Returns:
- an
InputStream
from the server key/certificate keystore file.
-
serverPemHostname
Get the hostname contained withinloadServerPem()
which should match for client hostname verification.- Returns:
- hostname contained within
loadServerPem()
which should match for client hostname verification.
-
loadServerCAPem
Load the certificate of the Certificate Authority used to sign theloadServerPem()
.- Returns:
- an
InputStream
whose contents is the certificate of the Certificate Authority used to sign theloadServerPem()
.
-
loadClientKey
Load the client private key.- Returns:
- an
InputStream
from the client private key file.
-
loadClientPem
Load the client certificate chain file.- Returns:
- an
InputStream
from the client certificate chain file.
-
loadClientCAPem
Load the certificate of the Certificate Authority used to sign theloadClientPem()
.- Returns:
- an
InputStream
whose contents is the certificate of the Certificate Authority used to sign theloadClientPem()
.
-
loadClientP12
Load the client certificate PKCS#12 keystore file.- Returns:
- an
InputStream
from the client key/certificate keystore file.
-
loadTruststoreP12
Load the PKCS#12 truststore file.- Returns:
- an
InputStream
from the truststore file.
-