GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Client::Simple(3) User Contributed Perl Documentation OpenXPKI::Client::Simple(3)

An easy to use class to connect to the openxpki daemon and run commands Designed as a kind of CLI interface for inline use within scripts. By default, it will not handle sessions and create a new session using the given auth info on each new instance (subsequent commands within one call are run on the same session). If you pass (and maintain) a session object to the constructor, it is used to persist the backend session during requests.

The client is constructed calling the new method, the required configuration can be set via one of three options:

Explicit Config

Pass the configuration as hash to the new method, must set at least config.socket and config.realm (omit if server has only one realm).

The default authentication is anonymous but can be overidden by setting auth.stack and appropriate keys for the chosen login method.

An instance of Log4perl can be passed via logger, default is to log to STDERR with loglevel error.

Explicit Config from File

Pass the name of the config file to use as string to the new method, the file must be in the standard config ini format and have at least a section global providing socket and realm.

If an auth section exists, it is mapped as is to the auth parameter.

You can set a loglevel and logfile location using log.file and log.level. Loglevel must be a Log4perl Level name without the leading dollar sign (e.g. level=DEBUG).

Implicit Config from File

If you do not pass a config argument to the new method, the class tries to find a config file at

string set in the environment OPENXPKI_CLIENT_CONF
$HOME/.openxpki.conf
/usr/local/etc/openxpki/client.conf

The same rules as above apply, in case you pass auth or logger as explicit arguments the settings in the file are ignored.

Combined method to interact with workflows. Action depends on the parameters given. Return value is always the workflow info structure.

Legacy Mode: If arguments are passed with uppercase keys (ID, TYPE, ACTIVITY), the return structure also contains uppercase keys. This is provided for backward compatibility and will be removed with the next major release!

id
Returns the workflow info for the existing workflow with given id.
activity
Only in combination with ID, executes the given action and returns the workflow info after processing was done. Will die if execute fails.
type
Create a new workflow of given type, only effective if ID is not given.
params
Parameter hash to be passed to create/execute method as input values.

Close the connection and detach from the communication socket.

Try to reconnect an existing session. Returns the result of init_session from the underlying client.
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.