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


Manual Reference Pages  -  OPENXPKI::SERVER (3)

.ds Aq ’

Name

OpenXPKI::Server - central server class (the daemon class).

CONTENTS

Description

This is the main server class of OpenXPKI. If you want to start an OpenXPKI server then you must instantiate this class. Please always remember that an instantiation of this module is a startup of a trustcenter.

Functions

    new

starts the server. It needs some parameters to configure the server but if they are correct then an exec will be performed. The parameters are the following ones:
o DAEMON_USER
o DAEMON_GROUP
o CONFIG
o SILENT (for silent startup with start-stop-daemons during System V init)
All parameters are required.

    process_request

is the function which is called by Net::Server to make the work. The only parameter is the class instance. The communication is handled via STDIN and STDOUT.

The class selects the user interfaces and checks the pre-initialized variables. If all of this is fine then the user interface will be initialized and started.

    do_process_request

does the actual work of process_request: it reconnects dbi_log, determines transport, serialization and service from the user input and calls the init() and run() methods on the corresponding service. It also does some housekeeping such as setting permissions, setting the process name, etc.

    post_bind_hook

Is executed (by Net::Server) just after the bind process and just before any chrooting, change of user, or change of group occurs. Changes the socket ownership based on the configuration.

    pre_loop_hook

Drops privileges to the user configured in the configuration file just before starting the main server loop.

    command

is normal layer stack where the user interfaces can execute commands.

    Server Configuration

__redirect_stderr

Send all messages to STDERR directly to a file. The file is specified in the XML configuration.

__get_user_interfaces

Returns a hash reference with the supported user interfaces. The value of each hash element is an instance of the user interface class.

__get_server_config

Prepares the complete server configuration to startup a socket based server with Net::Server::Fork. It returns a hashref.

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


perl v5.20.3 OPENXPKI::SERVER (3) 2016-04-03

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