This file provides a description of a syntax of a standard configuration file 
used by UVOS clients.

The client use the configuration file to get information about:
 - UVOS server address
 - Clients identity which is used to authenticate the client to the UVOS server 
 - Trusted certificates for TLS connection.
 
All the settings are defined in the file conf/uvosClient.conf. The file location can be changed 
via '-c file' argument or by setting the UVOSCLC_CONFIG shell variable. 
The Java Properties format is used. See:
 
 http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#load(java.io.InputStream)

for a formal discussion however it is enough to know that:
 * comments are started by '#'
 * on each line (non empty and not commented out) there is one property and its value defined...
 * ... with the syntax: propertyName=property value

UVOS can be contacted using insecure HTTP or secure HTTPS. Except closed test environments 
it is always strongly suggested to use secure HTTPS.

Clients can authenticate to the UVOS using two mechanisms:
* using X.509 certificate - it is taken from SSL session so to use this authentication
you must use 'https' protocol.
* using email and password - then any protocol can be used. 

The rest of this document presents possible properties with description 
in comments (so it can be copied and used as an example configuration)

-----------------------------------------------------------------------------------------------

# The following three mandatory properties define UVOS server address. 
#  Possible values 'http' or 'https'
protocol=https
#  Port number, integer 1-65535
port=2443
#  Host address or IP address
host=localhost


# Those settings are used only when protocol is 'https'. 
#  Do we authenticate ourself to the server using our TLS certificate?
SSLauthenticate=true
# If authenticate is false keystore* properties are not needed. Otherwise those are
# properties define a keystore to read client's certificate from. It will be used 
# for authenticating it to the UVOS server. 
#  Keystore path
keystore=conf/certs/dummyClient.jks
#  Keystore passowrd 
keystorePasswd=the!client
#  Keystore type (JKS or PKCS12)
keystoreType=JKS
#  Keystore alias with private key
keystoreAlias=mykey
#  Keystore key's password. Defaults to keystorePassword so can be undefined.
#keyPasswd=

# However truststore is always needed for https - this file contains all 
# trusted certificates. You can use the same file for keystore and truststore
#   Keystore path
truststore=conf/certs/dummyClientTruststore.jks
#  Keystore passowrd 
truststorePasswd=the!client
#  Keystore type (JKS or PKCS12)
truststoreType=JKS


# Do we authenticate with HTTP Basic authN (i.e. username & passwd)?
HTTPauthenticate=true
# The following two options are only relevant if HTTPauthenticate is true
#  email address of identity (present in UVOS)
HTTPpasswd=
#  ... and its password
HTTPuser=voadmin@localhost


