[id='generating-server-keystores_{context}']
= Generating {brandname} Server keystores

Configure {brandname} Server 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

. Open your {brandname} Server configuration for editing.
. 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.
. Save the changes to your configuration.

[discrete]
== Generated keystore configuration

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

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

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