Setting up Jetty for SSL Communication
-
Out of the box, the Rest API will only allow SSL communication. However, you are required to set up a key store that includes a server certificate.
See Creating a Key Store File with Self-Signed Certificate details below on how to create a self-signed certificate.
-
Once the eftlink-rest-api "keystore" file has been created, you will need to obfuscate the password.
See the Obfuscating Text using Jetty section below.
-
Replace the text ObfuscatedPassword Here with your obfuscated password.
For example:
<New id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory">…<Set name="KeyStorePassword">ObfuscatedPasswordHere</Set><Set name="KeyManagerPassword">ObfuscatedPasswordHere</Set><Set name="TrustStorePassword">ObfuscatedPasswordHere</Set>…</New>