This component provides a simple interface to add authorizations to synchronize data. It can operate either by authorizing certificates from files or by directly specifying the certificate digests to use.

Usage

da.sync.authorize [switches…​] station…​

Switches

--certificate=FILE

This is the certificate used for synchronization.

--deauthorize[=BOOLEAN]

When enabled any existing authorization is removed and replaced with the new authorization. This ensures that the old synchronization certificate can no longer be used.

--digest=STRING

This specifies the digest of the certificate to add authorization for. When absent this is calculated from any certificates that are added.

--quiet[=BOOLEAN]

If set then no progress output is displayed and any confirmation prompts are bypassed.

Default: Disabled

--template=STRING

This specifies the name of the template configuration used to configure the authorization.

Default: Derived from the certificate

Arguments

station

This argument is used to specify the station used to look up variables that do not include a station as part of an archive read specification. The station is the three letter GAW station code of the location, such as BND. The argument accepts multiple stations specified as regular expressions and separated by : or ; or ,. For example BND,MLO and (BND|MLO) are two ways of selecting both the BND and MLO stations.

The special value allstations may also be specified to select all stations.

Examples

Authorize synchronization in the current directory

This will add authorization for all certificates in the current directory to the given stations.

da.sync.authorize bnd
Add authorization

This will add authorization for any stations specified to accept the given digest for synchronization.

da.sync.authorize --digest=7058b93963e3d6bf1dbc22b88a1a1d4a1ebfefd0 bnd
File authorization

This will add authorization for any stations specified to accept the given certificate for synchronization.

da.sync.authorize --certificate=/tmp/sfa_sync.pem --deauthorize bnd