createIdentity
Create self-signed certificate and private key, store them in the canonical keystore, and return an identity backed by the new entry. The identity will be stored in the secure storage using the specified alias and can be recovered using that alias, after this method returns.
Return
the new identity
Parameters
true if this is a server certificate
certificate attributes
expiration date
alias used to identify the key/certificate entry, in the keystore
Throws
on failure to get identity
Create a self-signed certificate TLSIdentity object. The generated private key will be stored in the KeyStore along with its self-signed certificate.
Return
A TLSIdentity object.
Parameters
The flag indicating that the certificate is for server or client.
The certificate attributes.
The certificate expiration date.
The KeyStore object for storing the generated private key and certificate.
The key alias for storing the generated private key and certificate.
The password to protect the private key entry in the KeyStore.
Throws
on failure