Java Reference
In-Depth Information
<subsystem xmlns="urn:jboss:domain:undertow:1.0">
<buffer-cache name="default"
buffer-size="1024" buffers-per-region="1024"
<server name="default-server">
<https-listener name="default"
socket-binding="https" security-realm="EJBRealm"/>
<host name="default-host" alias="localhost">
<location name="/"
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
<servlet-container name="default"
// some more code
As you can see, we referenced EJBRealm in the configuration, but we still need to define
it. We will do this in the next sections.
Generating the server and client certificates
Start by generating a public/private key pair for the entity whose unique name has the
common name John Smith , organization PacktPub , and two-letter country code GB .
keytool -genkey -v -alias wflyAlias -keyalg RSA -keysize
1024 -keystore wfly.keystore -validity 180 -keypass
mypassword -storepass mypassword -dname "cn=John
Next, export the server's public key into a certificate named sslPublicKey.cer that
uses the password mypassword .
Search WWH ::

Custom Search