2018-08-17 15:52:56 +00:00
Configuring a node
2016-11-28 18:00:03 +00:00
==================
2016-08-31 08:48:19 +00:00
2018-02-26 14:53:13 +00:00
.. contents ::
2016-11-28 18:00:03 +00:00
File location
-------------
2018-02-26 14:53:13 +00:00
When starting a node, the `` corda.jar `` file defaults to reading the node's configuration from a `` node.conf `` file in
the directory from which the command to launch Corda is executed. There are two command-line options to override this
behaviour:
* The `` --config-file `` command line option allows you to specify a configuration file with a different name, or at
different file location. Paths are relative to the current working directory
2016-08-31 08:48:19 +00:00
2018-02-26 14:53:13 +00:00
* The `` --base-directory `` command line option allows you to specify the node's workspace location. A `` node.conf ``
configuration file is then expected in the root of this workspace
2016-08-31 08:48:19 +00:00
2018-02-26 14:53:13 +00:00
If you specify both command line arguments at the same time, the node will fail to start.
2016-08-31 08:48:19 +00:00
2016-11-25 14:29:13 +00:00
Format
------
2018-06-21 15:57:30 +00:00
The Corda configuration file uses the HOCON format which is a superset of JSON. Please visit
2018-02-26 14:53:13 +00:00
`<https://github.com/typesafehub/config/blob/master/HOCON.md>`_ for further details.
2016-08-31 08:48:19 +00:00
2018-03-28 16:09:42 +00:00
Please do NOT use double quotes (`` " `` ) in configuration keys.
2018-06-21 15:57:30 +00:00
Node setup will log `Config files should not contain \" in property names. Please fix: [key]` as an error
when it finds double quotes around keys.
2018-03-28 16:09:42 +00:00
This prevents configuration errors when mixing keys containing `` . `` wrapped with double quotes and without them
e.g.:
The property `"dataSourceProperties.dataSourceClassName" = "val"` in `` reference.conf ``
would be not overwritten by the property `dataSourceProperties.dataSourceClassName = "val2"` in `` node.conf `` .
2018-03-28 14:54:58 +00:00
2018-04-27 08:33:13 +00:00
By default the node will fail to start in presence of unknown property keys. To alter this behaviour, program line argument
2018-11-08 15:56:00 +00:00
`` on-unknown-config-keys `` can be set to `` IGNORE `` . Default is `` FAIL `` if unspecified.
2018-04-27 08:33:13 +00:00
2018-02-26 14:53:13 +00:00
Defaults
2016-11-25 14:29:13 +00:00
--------
2018-02-26 14:53:13 +00:00
A set of default configuration options are loaded from the built-in resource file `` /node/src/main/resources/reference.conf `` .
This file can be found in the `` :node `` gradle module of the `Corda repository <https://github.com/corda/corda> `_ . Any
options you do not specify in your own `` node.conf `` file will use these defaults.
2016-08-31 08:48:19 +00:00
2018-02-26 14:53:13 +00:00
Here are the contents of the `` reference.conf `` file:
2016-08-31 08:48:19 +00:00
2018-02-26 14:53:13 +00:00
.. literalinclude :: ../../node/src/main/resources/reference.conf
2016-11-28 18:00:03 +00:00
:language: javascript
2016-08-31 08:48:19 +00:00
2016-11-25 14:29:13 +00:00
Fields
------
2018-11-16 17:10:53 +00:00
.. note :: All fields can be used with placeholders for environment variables. For example: `` ${NODE_TRUST_STORE_PASSWORD} `` would be replaced by the contents of environment variable `` NODE_TRUST_STORE_PASSWORD `` . See: `Hiding Sensitive Data`_
The available config fields are listed below.
2016-08-31 08:48:19 +00:00
2018-02-26 14:53:13 +00:00
:myLegalName: The legal identity of the node. This acts as a human-readable alias to the node's public key and can be used with
the network map to look up the node's info. This is the name that is used in the node's certificates (either when requesting them
from the doorman, or when auto-generating them in dev mode). At runtime, Corda checks whether this name matches the
name in the node's certificates.
2016-08-31 08:48:19 +00:00
2016-12-22 14:48:27 +00:00
:keyStorePassword: The password to unlock the KeyStore file (``<workspace>/certificates/sslkeystore.jks``) containing the
node certificate and private key.
2016-08-31 08:48:19 +00:00
2016-12-22 14:48:27 +00:00
.. note :: This is the non-secret value for the development certificates automatically generated during the first node run.
Longer term these keys will be managed in secure hardware devices.
2016-08-31 08:48:19 +00:00
2016-12-22 14:48:27 +00:00
:trustStorePassword: The password to unlock the Trust store file (``<workspace>/certificates/truststore.jks``) containing
the Corda network root certificate. This is the non-secret value for the development certificates automatically
generated during the first node run.
2016-08-31 08:48:19 +00:00
2016-09-23 09:55:40 +00:00
.. note :: Longer term these keys will be managed in secure hardware devices.
2016-08-31 08:48:19 +00:00
2018-04-30 08:26:26 +00:00
:crlCheckSoftFail: This is a boolean flag that when enabled (i.e. `true` value is set) the certificate revocation list (CRL) checking will use the soft fail mode.
The soft fail mode allows the revocation check to succeed if the revocation status cannot be determined because of a network error.
If this parameter is set to `false` the rigorous CRL checking takes place, meaning that each certificate in the
certificate path being checked needs to have the CRL distribution point extension set and pointing to a URL serving a valid CRL.
2018-07-02 14:32:47 +00:00
.. _databaseConfiguration:
2017-11-25 15:55:31 +00:00
:database: Database configuration:
:transactionIsolationLevel: Transaction isolation level as defined by the ``TRANSACTION_`` constants in
2018-12-13 13:34:58 +00:00
`` java.sql.Connection `` , but without the `` TRANSACTION_ `` prefix. Defaults to `` REPEATABLE_READ `` .
2017-12-08 16:27:12 +00:00
:exportHibernateJMXStatistics: Whether to export Hibernate JMX statistics (caution: expensive run-time overhead)
2017-11-25 15:55:31 +00:00
2018-12-13 13:34:58 +00:00
:initialiseSchema: Boolean on whether to update database schema at startup (or create when node starts for the first time).
Defaults to `` true `` . If set to `` false `` on startup, the node will validate if it's running against the compatible database schema.
:initialiseAppSchema: The property allows to override (downgrade) ``database.initialiseSchema`` for the Hibernate
DDL generation for CorDapp schemas. `` UPDATE `` performs an update of CorDapp schemas, while `` VALID `` only verifies
their integrity and `` NONE `` performs no check. By default (if the property is not specified) CorDapp schemas
creation is controlled by `` initialiseSchema `` . When `` initialiseSchema `` is set to false then `` initialiseAppSchema ``
may be set as `` VALID `` or `` NONE `` only.
2016-12-22 14:48:27 +00:00
:dataSourceProperties: This section is used to configure the jdbc connection and database driver used for the nodes persistence.
Currently the defaults in `` /node/src/main/resources/reference.conf `` are as shown in the first example. This is currently
the only configuration that has been tested, although in the future full support for other storage layers will be validated.
2016-08-31 08:48:19 +00:00
2018-07-23 13:15:09 +00:00
:h2Port: Deprecated. Use ``h2Settings`` instead.
2018-08-01 10:50:42 +00:00
:h2Settings: Sets the H2 JDBC server host and port. See :doc:`node-database-access-h2`. For non-localhost address the database passowrd needs to be set in ``dataSourceProperties``.
2018-04-25 08:38:59 +00:00
2017-03-17 10:32:14 +00:00
:messagingServerAddress: The address of the ArtemisMQ broker instance. If not provided the node will run one locally.
:p2pAddress: The host and port on which the node is available for protocol operations over ArtemisMQ.
2016-08-31 08:48:19 +00:00
2016-12-22 14:48:27 +00:00
.. note :: In practice the ArtemisMQ messaging services bind to all local addresses on the specified port. However,
2018-03-01 21:24:10 +00:00
note that the host is the included as the advertised entry in the network map. As a result the value listed
2017-05-12 13:09:02 +00:00
here must be externally accessible when running nodes across a cluster of machines. If the provided host is unreachable,
the node will try to auto-discover its public one.
2018-09-05 16:46:46 +00:00
:additionalP2PAddresses: An array of additional host:port values, which will be included in the advertised NodeInfo in the network map in addition to the ``p2pAddress``.
Nodes can use this configuration option to advertise HA endpoints and aliases to external parties. If not specified the default value is an empty list.
2016-08-31 08:48:19 +00:00
2018-06-11 14:50:06 +00:00
:flowTimeout: When a flow implementing the ``TimedFlow`` interface does not complete in time, it is restarted from the
initial checkpoint. Currently only used for notarisation requests: if a notary replica dies while processing a notarisation request,
the client flow eventually times out and gets restarted. On restart the request is resent to a different notary replica
in a round-robin fashion (assuming the notary is clustered).
:timeout: The initial flow timeout period, e.g. `30 seconds`.
:maxRestartCount: Maximum number of times the flow will restart before resulting in an error.
:backoffBase: The base of the exponential backoff, `t_{wait} = timeout * backoffBase^{retryCount}`.
2018-04-26 12:58:41 +00:00
2018-06-21 15:46:05 +00:00
:rpcAddress: (Deprecated) The address of the RPC system on which RPC requests can be made to the node. If not provided then the node will run without RPC. This is now deprecated in favour of the ``rpcSettings`` block.
2018-01-23 16:23:37 +00:00
2018-06-21 15:46:05 +00:00
:rpcSettings: Options for the RPC server exposed by the Node.
2018-01-23 16:23:37 +00:00
2018-06-21 15:46:05 +00:00
:address: host and port for the RPC server binding.
:adminAddress: host and port for the RPC admin binding (this is the endpoint that the node process will connect to).
2018-01-23 16:23:37 +00:00
:standAloneBroker: (optional) boolean, indicates whether the node will connect to a standalone broker for RPC, defaulted to ``false``.
2018-06-21 15:46:05 +00:00
:useSsl: (optional) boolean, indicates whether or not the node should require clients to use SSL for RPC connections, defaulted to ``false``.
:ssl: (mandatory if ``useSsl=true``) SSL settings for the RPC server.
:keyStorePath: Absolute path to the key store containing the RPC SSL certificate.
:keyStorePassword: Password for the key store.
.. note :: The RPC SSL certificate is used by RPC clients to authenticate the connection.
The Node operator must provide RPC clients with a truststore containing the certificate they can trust.
We advise Node operators to not use the P2P keystore for RPC.
2018-10-24 12:58:19 +00:00
The node can be run with the "generate-rpc-ssl-settings" command, which generates a secure keystore
2018-06-21 15:46:05 +00:00
and truststore that can be used to secure the RPC connection. You can use this if you have no special requirements.
2018-01-23 16:23:37 +00:00
2016-10-05 15:38:57 +00:00
2017-12-13 17:09:09 +00:00
:security: Contains various nested fields controlling user authentication/authorization, in particular for RPC accesses. See
:doc: `clientrpc` for details.
2018-10-22 09:26:10 +00:00
:notary: Optional configuration object which if present configures the node to run as a notary.
2016-08-31 08:48:19 +00:00
2017-11-29 17:07:13 +00:00
:validating: Boolean to determine whether the notary is a validating or non-validating one.
2016-10-25 15:45:08 +00:00
2018-05-30 14:47:40 +00:00
:serviceLegalName: If the node is part of a distributed cluster, specify the legal name of the cluster. At runtime, Corda
2018-07-09 16:38:31 +00:00
checks whether this name matches the name of the certificate of the notary cluster.
2018-05-30 14:47:40 +00:00
2018-10-22 09:26:10 +00:00
:className: The fully qualified class name of the notary service to run. The class is expected to be loaded from
a notary CorDapp. Defaults to run the `` SimpleNotaryService `` , which is built in.
2017-10-05 11:27:45 +00:00
2018-10-22 09:26:10 +00:00
:extraConfig: an optional configuration block for providing notary implementation-specific values.
2016-10-25 15:45:08 +00:00
2016-12-22 14:48:27 +00:00
:rpcUsers: A list of users who are authorised to access the RPC system. Each user in the list is a config object with the
2016-11-11 15:59:37 +00:00
following fields:
2016-08-31 08:48:19 +00:00
2017-11-29 17:07:13 +00:00
:username: Username consisting only of word characters (a-z, A-Z, 0-9 and _)
:password: The password
:permissions: A list of permissions for starting flows via RPC. To give the user the permission to start the flow
`` foo.bar.FlowClass `` , add the string `` StartFlow.foo.bar.FlowClass `` to the list. If the list
contains the string `` ALL `` , the user can start any flow via RPC. This value is intended for administrator
users and for development.
2016-11-28 18:00:03 +00:00
2017-07-04 11:12:50 +00:00
:devMode: This flag sets the node to run in development mode. On startup, if the keystore ``<workspace>/certificates/sslkeystore.jks``
2016-12-22 14:48:27 +00:00
does not exist, a developer keystore will be used if `` devMode `` is true. The node will exit if `` devMode `` is false
2017-07-04 11:12:50 +00:00
and the keystore does not exist. `` devMode `` also turns on background checking of flow checkpoints to shake out any
2018-05-11 16:48:02 +00:00
bugs in the checkpointing process.
Also, if `` devMode `` is true, Hibernate will try to automatically create the schema required by Corda
or update an existing schema in the SQL database; if `` devMode `` is false, Hibernate will simply validate the existing schema,
failing on node start if the schema is either not present or not compatible.
If no value is specified in the node config file, the node will attempt to detect if it's running on a developer machine and set `` devMode=true `` in that case.
This value can be overridden from the command line using the `` --dev-mode `` option.
2016-11-28 18:00:03 +00:00
2018-12-12 13:38:57 +00:00
:detectPublicIp: This flag toggles the auto IP detection behaviour, it is disabled by default. If enabled, on startup the node will
2017-06-23 10:42:55 +00:00
attempt to discover its externally visible IP address first by looking for any public addresses on its network
2018-12-12 13:38:57 +00:00
interfaces, and then by sending an IP discovery request to the network map service. Set to `` true `` to enable.
2017-06-23 10:42:55 +00:00
2017-11-14 11:37:50 +00:00
:compatibilityZoneURL: The root address of Corda compatibility zone network management services, it is used by the Corda node to register with the network and
2018-05-25 10:37:20 +00:00
obtain Corda node certificate, (See :doc: `permissioning` for more information.) and also used by the node to obtain network map information. Cannot be
set at the same time as the `` networkServices `` option.
:networkServices: If the Corda compatibility zone services, both network map and registration (doorman), are not running on the same endpoint
and thus have different URLs then this option should be used in place of the `` compatibilityZoneURL `` setting.
:doormanURL: Root address of the network registration service.
:networkMapURL: Root address of the network map service.
2018-10-18 14:39:42 +00:00
:pnm: Optional UUID of the private network operating within the compatibility zone this node should be joinging.
2018-05-25 10:37:20 +00:00
2018-06-12 10:03:32 +00:00
.. note :: Only one of `` compatibilityZoneURL `` or `` networkServices `` should be used.
:devModeOptions: Allows modification of certain ``devMode`` features
:allowCompatibilityZone: Allows a node configured to operate in development mode to connect to a compatibility zone.
.. note :: This is an unsupported configuration.
2017-10-24 15:49:47 +00:00
:jvmArgs: An optional list of JVM args, as strings, which replace those inherited from the command line when launching via ``corda.jar``
only. e.g. `` jvmArgs = [ "-Xmx220m", "-Xms220m", "-XX:+UseG1GC" ] ``
:systemProperties: An optional map of additional system properties to be set when launching via ``corda.jar`` only. Keys and values
of the map should be strings. e.g. `` systemProperties = { visualvm.display.name = FooBar } ``
:jarDirs: An optional list of file system directories containing JARs to include in the classpath when launching via ``corda.jar`` only.
Each should be a string. Only the JARs in the directories are added, not the directories themselves. This is useful
2018-05-09 10:16:36 +00:00
for including JDBC drivers and the like. e.g. `` jarDirs = [ '${baseDirectory}/lib' ] `` (Note that you have to use the `` baseDirectory ``
substitution value when pointing to a relative path)
2017-11-20 17:41:38 +00:00
2017-12-08 16:27:12 +00:00
:sshd: If provided, node will start internal SSH server which will provide a management shell. It uses the same credentials and permissions as RPC subsystem. It has one required parameter.
2017-11-20 17:41:38 +00:00
2018-05-25 15:38:34 +00:00
:port: The port to start SSH server on e.g. ``sshd { port = 2222 }``.
2017-12-08 16:27:12 +00:00
2018-02-15 17:10:07 +00:00
:jmxMonitoringHttpPort: If set, will enable JMX metrics reporting via the Jolokia HTTP/JSON agent on the corresponding port.
Default Jolokia access url is http://127.0.0.1:port/jolokia/
2017-12-15 17:48:33 +00:00
2018-01-22 13:41:06 +00:00
:transactionCacheSizeMegaBytes: Optionally specify how much memory should be used for caching of ledger transactions in memory.
Otherwise defaults to 8MB plus 5% of all heap memory above 300MB.
:attachmentContentCacheSizeMegaBytes: Optionally specify how much memory should be used to cache attachment contents in memory.
Otherwise defaults to 10MB
:attachmentCacheBound: Optionally specify how many attachments should be cached locally. Note that this includes only the key and
2018-02-26 14:53:13 +00:00
metadata, the content is cached separately and can be loaded lazily. Defaults to 1024.
2018-04-26 13:26:37 +00:00
:extraNetworkMapKeys: An optional list of private network map UUIDs. Your node will fetch the public network and private network maps based on
these keys. Private network UUID should be provided by network operator and lets you see nodes not visible on public network.
.. note :: This is temporary feature for onboarding network participants that limits their visibility for privacy reasons.
2018-03-01 14:57:36 +00:00
2018-05-17 07:21:24 +00:00
:tlsCertCrlDistPoint: CRL distribution point (i.e. URL) for the TLS certificate. Default value is NULL, which indicates no CRL availability for the TLS certificate.
2018-06-29 07:13:43 +00:00
.. note :: This needs to be set if crlCheckSoftFail is false (i.e. strict CRL checking is on).
2018-05-17 07:21:24 +00:00
:tlsCertCrlIssuer: CRL issuer (given in the X500 name format) for the TLS certificate. Default value is NULL,
which indicates that the issuer of the TLS certificate is also the issuer of the CRL.
2018-06-29 07:13:43 +00:00
.. note :: If this parameter is set then `tlsCertCrlDistPoint` needs to be set as well.
2018-05-17 07:21:24 +00:00
2018-06-18 16:59:00 +00:00
:flowMonitorPeriodMillis: ``Duration`` of the period suspended flows waiting for IO are logged. Default value is ``60 seconds``.
:flowMonitorSuspensionLoggingThresholdMillis: Threshold ``Duration`` suspended flows waiting for IO need to exceed before they are logged. Default value is ``60 seconds``.
2018-08-09 07:11:17 +00:00
:jmxReporterType: Provides an option for registering an alternative JMX reporter. Available options are ``JOLOKIA`` and ``NEW_RELIC``. If no value is provided, ``JOLOKIA`` will be used.
.. note :: The Jolokia configuration is provided by default. The New Relic configuration leverages the Dropwizard_ NewRelicReporter solution. See `Introduction to New Relic for Java`_ for details on how to get started and how to install the New Relic Java agent.
.. _Dropwizard: https://metrics.dropwizard.io/3.2.3/manual/third-party.html
.. _Introduction to New Relic for Java: https://docs.newrelic.com/docs/agents/java-agent/getting-started/introduction-new-relic-java
2018-11-07 16:48:31 +00:00
.. _corda_configuration_file_signer_blacklist:
2018-10-30 13:53:01 +00:00
:cordappSignerKeyFingerprintBlacklist: List of public keys fingerprints (SHA-256 of public key hash) not allowed as Cordapp JARs signers.
Node will not load Cordapps signed by those keys.
The option takes effect only in production mode and defaults to Corda development keys (`` ["56CA54E803CB87C8472EBD3FBC6A2F1876E814CEEBF74860BD46997F40729367",
"83088052AF16700457AE2C978A7D8AC38DD6A7C713539D00B897CD03A5E5D31D"]`` ), in development mode any key is allowed to sign Cordpapp JARs.
2018-11-21 12:51:21 +00:00
:networkParameterAcceptanceSettings: Optional settings for managing the network parameter auto-acceptance behaviour. If not provided then the defined defaults below are used.
:autoAcceptEnabled: This flag toggles auto accepting of network parameter changes. If a network operator issues a network parameter change which modifies only
auto-acceptable options and this behaviour is enabled then the changes will be accepted without any manual intervention from the node operator. See
:doc: `network-map` for more information on the update process and current auto-acceptable parameters. Set to `` false `` to disable. Defaults to true.
:excludedAutoAcceptableParameters: List of auto-acceptable parameter names to explicitly exclude from auto-accepting. Allows a node operator to control the behaviour at a
more granular level. Defaults to an empty list.
2018-10-30 13:53:01 +00:00
2018-02-26 14:53:13 +00:00
Examples
--------
General node configuration file for hosting the IRSDemo services:
.. literalinclude :: example-code/src/main/resources/example-node.conf
2018-05-09 14:19:35 +00:00
Simple notary configuration file:
2018-02-26 14:53:13 +00:00
.. parsed-literal ::
myLegalName : "O=Notary Service,OU=corda,L=London,C=GB"
keyStorePassword : "cordacadevpass"
trustStorePassword : "trustpass"
p2pAddress : "localhost:12345"
rpcSettings = {
useSsl = false
standAloneBroker = false
address : "my-corda-node:10003"
adminAddress : "my-corda-node:10004"
}
notary : {
validating : false
}
2018-05-25 10:37:20 +00:00
devMode : false
2018-03-01 14:57:36 +00:00
compatibilityZoneURL : "https://cz.corda.net"
2018-06-21 15:46:05 +00:00
Configuring a node where the Corda Compatibility Zone's registration and Network Map services exist on different URLs
2018-05-25 10:37:20 +00:00
.. literalinclude :: example-code/src/main/resources/example-node-with-networkservices.conf
2018-11-26 17:11:05 +00:00
Fields override
2018-05-21 09:55:44 +00:00
---------------
2018-06-21 15:46:05 +00:00
JVM options or environmental variables prefixed with `` corda. `` can override `` node.conf `` fields.
Provided system properties can also set values for absent fields in `` node.conf `` .
This is an example of adding/overriding the keyStore password :
2018-05-21 09:55:44 +00:00
.. sourcecode :: shell
2018-05-25 10:37:20 +00:00
java -Dcorda.rpcSettings.ssl.keyStorePassword=mypassword -jar node.jar
2018-06-29 07:13:43 +00:00
2018-11-26 17:11:05 +00:00
CRL configuration
2018-06-29 07:13:43 +00:00
-----------------
The Corda Network provides an endpoint serving an empty certificate revocation list for the TLS-level certificates.
This is intended for deployments that do not provide a CRL infrastructure but still require a strict CRL mode checking.
In such a case use the following URL in `tlsCertCrlDistPoint` option configuration:
.. sourcecode :: kotlin
"https://crl.cordaconnect.org/cordatls.crl"
Together with the above configuration `tlsCertCrlIssuer` option needs to be set to the following value:
.. sourcecode :: kotlin
"C=US, L=New York, O=R3 HoldCo LLC, OU=Corda, CN=Corda Root CA"
This set-up ensures that the TLS-level certificates are embedded with the CRL distribution point referencing the CRL issued by R3.
In cases where a proprietary CRL infrastructure is provided those values need to be changed accordingly.
2018-11-16 17:10:53 +00:00
2018-11-26 17:11:05 +00:00
.. _corda-configuration-hiding-sensitive-data:
Hiding sensitive data
2018-11-16 17:10:53 +00:00
---------------------
A frequent requirement is that configuration files must not expose passwords to unauthorised readers. By leveraging environment variables, it is possible to hide passwords and other similar fields.
Take a simple node config that wishes to protect the node cryptographic stores:
.. parsed-literal ::
myLegalName : "O=PasswordProtectedNode,OU=corda,L=London,C=GB"
keyStorePassword : ${KEY_PASS}
trustStorePassword : ${TRUST_PASS}
p2pAddress : "localhost:12345"
devMode : false
compatibilityZoneURL : "https://cz.corda.net"
By delegating to a password store, and using `command substitution` it is possible to ensure that sensitive passwords never appear in plain text.
The below examples are of loading Corda with the KEY_PASS and TRUST_PASS variables read from a program named `` corporatePasswordStore `` .
Bash
~~~~
.. sourcecode :: shell
KEY_PASS=$(corporatePasswordStore --cordaKeyStorePassword) TRUST_PASS=$(corporatePasswordStore --cordaTrustStorePassword) java -jar corda.jar
Windows PowerShell
~~~~~~~~~~~~~~~~~~
.. sourcecode :: shell
$env:KEY_PASS=$(corporatePasswordStore --cordaKeyStorePassword); $env:TRUST_PASS=$(corporatePasswordStore --cordaTrustStorePassword); java -jar corda.jar
For launching on Windows without PowerShell, it is not possible to perform command substitution, and so the variables must be specified manually, for example:
.. sourcecode :: shell
SET KEY_PASS=mypassword & SET TRUST_PASS=mypassword & java -jar corda.jar
.. warning :: If this approach is taken, the passwords will appear in the windows command prompt history.