SSL Configuration
To ensure that all communications within Nuix RESTful Service are protected, Secure Sockets Layer (SSL) should be enabled before using the application in a production environment.
Before You Begin
It is recommended that SSL be implemented with a valid certificate obtained from a trusted Certificate Authority (CA).
To enable SSL, Nuix RESTful Service requires:
- A PKCS12 (Recommended) or JKS keystore
- A PEM or DER based certificate
Generating a Self-Signed Certificate
Certificates being used in a production environment should be obtained and signed by a trusted Certificate Authority (CA). In some circumstances, however, it may be necessary to generate a self-signed certificate for testing purposes.
Use the following procedure to generate a self-signed PKCS12 based keystore for use with Nuix RESTful Service.
-
From a command prompt, navigate to the Java installation directory used by Nuix RESTful Service:
- Windows:
C:\Program Files\Common Files\i4j_jres\11.0.3\bin - Linux:
$JAVA_HOME/bin
- Windows:
-
Run the following command to generate the keystore.
keytool -genkeypair -alias nuixrest -keyalg RSA -keysize 4096 -storetype PKCS12 -keystore nuixrest.p12 -validity 3650 -storepass changeit -keypass changeit -
Proceed to Enableing SSL to complete the configuration.
Importing a PEM Certificate to a PKCS12 Keystore
If using a certificate from a trusted CA, use the following procedure to import the PEM based key and certificate to the PKCS12 keystore:
Note
Ensure that an OpenSSL Binary has been download and installed before proceeding-
From a command prompt with elevated privileges, enter the following command:
openssl pkcs12 -export -out nuixrest.p12 -inkey privkey.pem -in cert.pem -name nuixrest -
Proceed to Enableing SSL to complete the configuration.
Enabling SSL
Use the following procedure to enable SSL for Nuix RESTful Service after importing your certificate to the keystore:
- Navigate to the following location within the Nuix RESTful Service installation directory.
- Windows default:
C:\Program Files\Nuix\Nuix RESTful Service\settings - Linux default:
/opt/nuix-restful-service/settings
- Windows default:
- Using a text editor, open
application.properties. - Update the values of the following existing properties to provide the details of your keystore and enable SSL:
server.port=8443 server.ssl.key-store=/path/to/generated/keystore/nuixrest.p12 server.ssl.key-store-password=changeit server.ssl.key-store-type=PKCS12 server.ssl.key-alias=nuixrest server.ssl.key-password=changeit server.ssl.enabled-protocols=TLSv1.2 - Save the file and exit.
- Restart Nuix RESTful Service for the changes to take effect.
After restarting, Nuix RESTful Service will be accessible at the following URL: https://127.0.0.1:8443/nuix-restful-service/svc/docs