Logging in using SSL from the CLC Server Command Line Tools

The CLC Server Command Line Tools automatically detects and uses SSL if present on the port it connects to. If the certificate is untrusted the clcserver program will refuse to login:

./clcserver -S localhost -U root -W default -P 8443
Message: Trying to log into server
Error: SSL Handshake failed. Check certificate.
Option                                   Description
------                                   -----------
-A <Command>                             Command to run. If not specified the list of commands on the server will be returned.
-C <Integer>                             Specify column width of help output.
-D <Boolean>                             Enable debug mode (default: false)
-G <Grid Preset value>                   Specify to execute on grid.
-H                                       Display general help.
-I <Algorithm Command>                   Get information about an algorithm
-O <File>                                Output file.
-P <Integer>                             Server port number. (default: 7777)
-Q <Boolean>                             Quiet mode. No progress output. (default: false)
-S <String>                              Server hostname or IP-address of the CLC Server.
-U <String>                              Valid username for logging on to the CLC Server
-V                                       Display version.
-W <String>                              Clear text password or domain specific password token.
In order to trust the certificate the clcsserversslstore tool must be used:
./clcsserversslstore -S localhost -U root -W default -P 8443
The server (localhost) presented an untrusted certificate with the following attributes:
SUBJECT
=======
Common Name        : localhost
Alternative Names  : N/A
Organizational Unit: Enterprise
Organization       : CLC Bio
Locality           : Aarhus N.
State              : N/A
Country            : DK
ISSUER
=======
Common Name        : localhost
Organizational Unit: Enterprise
Organization       : CLC Bio
Locality           : Aarhus N.
State              : N/A
Country            : DK
FINGERPRINTS
============
SHA-1              : A5 F6 8D C4 F6 F3 CB 44 D0 BA 83 E9 36 14 AE 9B 68 9B 9C F9
SHA-256            : 4B B5 0B 04 3C 3A A1 E2 D1 BF 87 10 F1 5D EA DD 9B 92 FF E3 C1 C9 9A 35 48 AF F6 98 87 9F 1D A8
VALIDITY PERIOD
===============
Valid From         : Sep 1, 2011
Valid To           : Aug 31, 2012
Trust this certificate? [yn]
Once the certificate has been accepted, the clcserver program is allowed to connect to the CLC Server.