Install Server Certificate in Local Keystore
tdsync
to connect to an https
Titania
Delivery server, the server's certificate must be downloaded and installed in the
local java
certificate store.This document describes two different methods for installing a secure TD certificate
on a local
machine (PC, Mac, or Unix platform) in order to run tdsync
. This should be
done by a system administrator. Additional third-party software applications may be
required,
depending on the method.
You'll need to know the hostname of the Titania Delivery server that you intend to connect to. That will be represented with td-host in the following examples.
Locate the java certificate store in your system's JAVA_HOME directory. This
may vary depending on your java installation, but will typically be like
JAVA_HOME/lib/security/cacerts
. That location will be
represented with cacerts-file in the following examples.
Install certificate using KeyStore Explorer
KeyStore Explorer
is an open-source GUI application for working with Java
keystores. It can be downloaded from http://keystore-explorer.org/. These instructions are for
KeyStore Explorer
v5.4.4. Other versions may differ in some details.
- Start
KeyStore Explorer
as administrator. - Select .
- Enter the td-host in the SSL Host field.
- Check Enable Client Authentication.
- Browse to cacerts-file location and enter it in the
KeyStore field.
- Click OK. The Certificate Details page will appear.
- Click Import on the Certificate Details page.
- Save the cacerts-file.
- Close the
KeyStore Explorer
application.
Install certificate using openssl and keytool
openssl
is an open-source software toolkit for working with Transport Layer
Security (TLS) and Secure Sockets Layer (SSL) protocols. Source and binary distributions
can be
found from the https://www.openssl.org/ website. openssl
is installed by default on
many Unix platforms.
keytool
is a command-line tool that is supplied with most Java Development
Kit (jdk) installations.
- Issue the following
openssl
command to obtain the certificate from the server. (You can name the downloaded certificate whatever you like instead of "td-cert.crt".In a Windows Powershell console, use a command like this (do not include line breaks in command):
$null | openssl s_client -showcerts -connect {td-host} 2>$null | openssl x509 > td-cert.crt
In a
bash
terminal, use a command like this (do not include line breaks in command):openssl s_client -showcerts -connect {td-host} </dev/null 2>/dev/null | openssl x509 > td-cert.crt
- Install the certificate (do not include line breaks in command). You can use any alias
value
(instead of "td-cert"), perhaps using the hostname of the TD
server.
keytool -import -trustcacerts -keystore {cacerts-file} -storepass changeit -noprompt -alias td-cert -file td-cert.crt