Before you begin: All services must communicate with one another and with the
client through HTTPS only. Before starting the installation, make sure that the certificates
identifying the service endpoints are available.
-
Generate certificate requests files with the
openssl
command:
openssl req -new -newkey rsa:2048 -nodes -days 365 -subj
"/C=country/ST=state/L=city/O=organization/OU=departement/CN=fully.qualified.server.name"
-out my_certificate.csr -keyout my_certificate.key
Note:
If you use an optional pass phrase (use that only if you know how to handle it), you
need to provide it to the reverse proxy (not covered here).
This command generates .key
and
.csr
files.
-
Keep the
.key
files and send the .csr
files to the authority in charge of signing your certificates.
Specify that the certificates are intended for Apache Httpd if you use it. The certificate
authority then sends back to you the .cer
(or
.crt
) files.
When installing the different platform services, use only the
.cer
(or .crt
) files. On the
reverse proxy, however, use both the .cer
(or
.crt
) and the .key
files.
Each TomEE application server will contact other services, and must therefore have
recognized certificates, that is, certificates from a recognized
authority or inserted into the JVM keystores using the
keytool
command.
-
On the reverse proxy, check that your SSL certificate has the following
configuration:
SSLCertificateFile /path/to/your.cer
SSLCertificateKeyFile /path/to/your.key