Class PemSslStoreHelper
java.lang.Object
org.springframework.cloud.bindings.boot.pem.PemSslStoreHelper
helper for creating stores from PEM-encoded certificates and private keys.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathcreateKeyStoreFile(String name, String password, String certificate, String privateKey, String keyAlias) Utility method to create a KeyStore and save it in the tmp directory with give name.static StringGenerates a password to use for KeyStore and/or TrustStore
-
Field Details
-
PKCS12_STORY_TYPE
- See Also:
-
-
Constructor Details
-
PemSslStoreHelper
public PemSslStoreHelper()
-
-
Method Details
-
createKeyStoreFile
public static Path createKeyStoreFile(String name, String password, String certificate, String privateKey, String keyAlias) Utility method to create a KeyStore and save it in the tmp directory with give name.- Parameters:
name- the store file namepassword- the store passwordcertificate- the certificate to add to the storeprivateKey- the private key to add to the storekeyAlias- the alias- Returns:
- the path which store file is saved
-
generatePassword
Generates a password to use for KeyStore and/or TrustStore- Returns:
- the password
-