Page History
...
The command line client is available with the Instance Start Script for Unix and Windows
- for a Controller instance:
./bin/controller_instance.sh|cmd
- For details see JS7 - Controller - Command Line Operation
- for an Agent instance:
./bin/agent_<port>.sh|cmd
- For details see JS7 - Agent Command Line Operation
Standard Arguments
The following arguments are used independently from an HTTP or HTTPS connection to JOC Cockpit:
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Explanation:
|
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
java -jar sos-commons-cli.jar com.sos.cli.ExecuteRollOut./bin/controller_instance.sh cert \ --token=73bfc4b8-3f15-44b9-a75b-cdb44aec8f4b \ --joc-uri=http://somehost.example.com:4446 \ --san="myhost.example.com, myhost" \ --subject-dn="CN=myhost, OU=IT Operations, O=SOS, C=DE, L=Berlin, ST=Berlin" \ --key-alias=myhost \ --ca-alias="Root CA" \ --target-keystore=/var/sos-berlin.com/js7/controller/var/config/private/https-keystore.p12 \ --target-keystore-pass=jobscheduler \ --target-keystore-entry-pass=jobscheduler \ --target-truststore=/var/sos-berlin.com/js7/controller/var/config/private/https-truststore.p12 \ --target-truststore-pass=jobscheduler |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
java -jar sos-commons-cli.jar com.sos.cli.ExecuteRollOut./bin/controller_instance.sh cert \ --token=73bfc4b8-3f15-44b9-a75b-cdb44aec8f4b \ --joc-uri=https://somehost.example.com:4446 \ --san="myhost.example.com, myhost" \ --subject-dn="CN=myhost, OU=IT Operations, O=SOS, C=DE, L=Berlin, ST=Berlin" \ --key-alias=myhost \ --ca-alias="Root CA" \ --source-keystore=/home/sos/private/js7-keystore.p12 \ --source-keystore-pass="" \ --source-keystore-entry-pass="" \ --source-truststore=/home/sos/private/js7-truststore.p12 \ --source-truststore-pass="" \ --target-keystore=/var/sos-berlin.com/js7/controller/var/config/private/https-keystore.p12 \ --target-keystore-pass=jobscheduler \ --target-keystore-entry-pass=jobscheduler \ --target-truststore=/var/sos-berlin.com/js7/controller/var/config/private/https-truststore.p12 \ --target-truststore-pass=jobscheduler |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
java -jar sos-commons-cli.jar com.sos.cli.ExecuteRollOut./bin/controller_instance.sh cert \ --token=73bfc4b8-3f15-44b9-a75b-cdb44aec8f4b \ --joc-uri=https://myhost.example.com:4446 \ --san="myhost.example.com, myhost" \ --subject-dn="CN=myhost, OU=IT Operations, O=SOS, C=DE, L=Berlin, ST=Berlin" \ --key-alias=myhost \ --ca-alias="Root CA" \ --source-private-key=/home/sos/private/myhost.key \ --source-certificate=/home/sos/public/myhost.pem \ --source-ca-cert="/home/sos/public/intermediate_ca.pem, /home/sos/public/root_ca.pem" \ --target-keystore=var/sos-berlin.com/js7/controller/var/config/private/https-keystore.p12 \ --target-keystore-pass=jobscheduler \ --target-keystore-entry-pass=jobscheduler \ --target-truststore=var/sos-berlin.com/js7/controller/var/config/private/https-truststore.p12 \ --target-truststore-pass=jobscheduler |
Explanation:
- tbd
Example for use with the Controller
...
/Agent
...
Instance
...
Start Script and default values
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# use with a Controller instance ./bin/controller_instance.sh cert --token=73bfc4b8-3f15-44b9-a75b-cdb44aec8f4b --joc-uri=https://myhost.example.com:4446 OR # use with an Agent instance ./bin/agent_<Port><port>.sh cert --token=73bfc4b8-3f15-44b9-a75b-cdb44aec8f4b --joc-uri=https://myhost.example.com:4446 |
Explanation:
- the
cert
argument for the instance startscript Instance Start Script to build the Java classpath and to start the java Java executable. - The
--token
argument specifies the one-time token to connect to JOC Cockpit once. - The
--joc-uri
argument specifies the URL for JOC Cockpit. - If other no additional arguments are not set the java executable tries to determine used then the Command Line Client determines default values for the Key-/Trustsstore Keystore and Truststore from the instances'
./config/private/private.conf
configuration, including defaults for the DN and for the SAN of the certificate.
Example for use with the Controller
...
/Agent
...
Instance
...
Start Script to update relevant DN entries
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# use with a Controller instance ./bin/controller_instance.sh cert --dn-only --token=73bfc4b8-3f15-44b9-a75b-cdb44aec8f4b --joc-uri=https://myhost.example.com:4446 OR # use with an Agent instance ./bin/agent_<Port><port>.sh cert --dn-only --token=73bfc4b8-3f15-44b9-a75b-cdb44aec8f4b --joc-uri=https://myhost.example.com:4446 |
...
- With the
--dn-only
argument set no certificates are generated. Only relevant distinguished names only relevant Distinguished Names (DNs) will be updated in to the./config/private/private.conf
configuration file.