|
OpenXPKI::Client::ConfigThis is a helper package for all cgi based client interfaces to read a client config file base on the name of the script called. It was designed to work inside an apache server but should do in other environments as long as the environment variables are available or adjusted.Environment variables
Default ConfigurationMostly logger config, used before FCGI is spawned and if no special config is found.Entity Configuration / AutodiscoveryMost cgi wrappers offer autodiscovery of config files based on the scripts filename, which is espacially handy with rewrite or alias rules. E.g. with the default scep configuration you can use http://servername/scep/my-endpoint in your scep client which will load the entity configuration from the file my-endpoint.conf in the scep config directory (by default /usr/local/etc/openxpki/scep, see also notes above).If no such file is found, the default configuration is used. Isntance Variables / Accessor MethodsserviceName of the service as passed during construction, read-only basepath The filesystem path holding the config directories, can be set during construction, defaults to /usr/local/etc/openxpki when not read from ENV (see above). logger The Log4perl instance. Will be created from the global section of the config file read but can also be set. default Accessor to the default configuration, usually read from default.conf. endpoint Name of the endpoint that is used for config discovery, set from the script name when "parse_uri" is called. Can also be set explicit. route The name of the route extracted from the script name by "parse_uri". language The name of the current language, set whenever a config is loaded that has the language propery set. Sets the gettext path when changed. client Instance of OpenXPKI::Client, autogenerated with the default socket path if not set. Methodsparse_uriTry to parse endpoint and route based on the script url in the environment. Always returns $self, endpoint is set to the empty string if parsing fails. config Returns the config hashref for the current endpoint.
Visit the GSP FreeBSD Man Page Interface. |