Using Certificates

Server certificates use the Java system property. This can be specified using the -D Java virtual machine option or the -java-prop Web Interface Server command line option.

  java -jar xds-server.jar -ssl


  java -jar xds-server.jar -java-prop keystore.jks -java-prop 123456 -ssl

Clients can include certificates using the Java system property.

  java -jar xds-client.jar -xds-ssl -d -o output.pdf


  java -jar xds-client.jar -xds-java-prop keystore.jks -xds-java-prop 123456 -xds-ssl -d -o output.pdf

Self Signed Certificate Example

Here is an example using a self signed certificate in order to test the SSL functionality. The keytool application ships with the Java Development Kit. An example key is included in the samples directory (keystore-for-testing-dont-use-in-production.jks).

CAUTION: This self signed certificate should only use for testing. Don't use in production.
  1. Generate a key to be shared by the server and client.
    keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass 123456 -validity 360 -keysize 2048
  2. Pass in the location of the key to the server Java virtual machine using the SSl keyStore variables.
    java -jar xds-server.jar -ssl
  3. Pass in the location of the key to the client Java virtual machine using the SSL trustStore variables.
    java -jar xds-client.jar -xds-ssl -d -o output.pdf


SSL debugging can be enabled by setting the property to ssl.

Copyright © 2005-2020 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.