[id='generate_keystores-{context}']
= Automatically Generating Keystores
Configure {brandname} servers to automatically generate keystores at startup.

[IMPORTANT]
====
Automatically generated keystores:

* Should not be used in production environments.
* Are generated whenever necessary; for example, while obtaining the first connection from a client.
* Contain certificates that you can use directly in Hot Rod clients.
====

.Procedure

. Include the `generate-self-signed-certificate-host` attribute for the `keystore` element in the server configuration.
. Specify a hostname for the server certificate as the value.


.SSL server identity with a generated keystore

[source,xml,options="nowrap",subs=attributes+]
----
include::config_examples/server_ssl_identity_generated.xml[]
----

<1> generates a keystore using `localhost`
